Skip to content

Commit

Permalink
more db compression
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 12, 2012
1 parent 7dbe06e commit fcd8962
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/game/GameRepo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ final class GameRepo(collection: MongoCollection)
++ $unset(
"c.t",
"ph",
"lmt",
"p.0.previousMoveTs",
"p.1.previousMoveTs",
"p.0.lastDrawOffer",
Expand Down
5 changes: 2 additions & 3 deletions bin/prod/game3.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ gamesToMigrate.forEach(function(g) {
} else {
cleanOrRename(g, 'isRated', 'ra');
}
if (finishedOrAborted(g)) {
clean(g, 'pgn');
}
if (finishedOrAborted(g)) {
delete g.positionHashes
delete g.lmt;
clean(g, 'pgn');
} else {
cleanOrRename(g, 'positionHashes', 'ph');
}
Expand Down
2 changes: 0 additions & 2 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ trait Resolvers {

trait Dependencies {
val scalaz = "org.scalaz" %% "scalaz-core" % "6.0.4"
val specs2 = "org.specs2" %% "specs2" % "1.12"
val salat = "com.novus" %% "salat-core" % "1.9.1"
val scalalib = "com.github.ornicar" %% "scalalib" % "2.5"
val config = "com.typesafe" % "config" % "0.4.1"
Expand All @@ -43,7 +42,6 @@ object ApplicationBuild extends Build with Resolvers with Dependencies {
scalaVersion := "2.9.1",
resolvers := Seq(iliaz, codahale, sonatype, sonatypeS, typesafe, t2v, guice, jgitMaven, christophs),
libraryDependencies := Seq(scalaz, scalalib, hasher),
libraryDependencies in test := Seq(specs2),
shellPrompt := {
(state: State) "%s> ".format(Project.extract(state).currentProject.id)
},
Expand Down
2 changes: 1 addition & 1 deletion test/PairingTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class PairingTest extends LilaSpec {
}

private def pairs(users: List[String], pairings: Pairings): List[(String, String)] =
createNewPairings(users, pairings) map (_.usersPair) map {
createNewPairings(users, pairings, users.size) map (_.usersPair) map {
case (a, b) (a < b).fold(a -> b, b -> a)
}

Expand Down
4 changes: 4 additions & 0 deletions todo
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ lsof show the open websockets on prod. The recurrent bug could come from the ope
lobby game filters http://en.lichess.org/forum/lichess-feedback/feature-request-game-filter#2
not possible to copy the link URL invite when using a iOS device. Can this be easily fixed by adding an automatic "copy" button next to the link?
search bug http://en.lichess.org/games/search?players.a=&players.b=&players.winner=&eloMin=&eloMax=&hasAi=&aiLevelMin=&aiLevelMax=&variant=&mode=1&opening=&turnsMin=&turnsMax=&durationMin=&durationMax=&status=35&dateMin=&dateMax=&sort.field=tu&sort.order=asc

==== deploy
remove space in lastMove
upgrade to game3

0 comments on commit fcd8962

Please sign in to comment.