Skip to content

Commit 92ef050

Browse files
authored
Merge pull request #110 from delphi-hub/release/0.8.0
Release/0.8.0
2 parents b7969c9 + 37802bc commit 92ef050

18 files changed

+39
-180
lines changed

app/actors/ClientSocketActor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ClientSocketActor(out: ActorRef, publisher: ActorRef) extends Actor with E
4747
}
4848
}
4949
)
50-
50+
5151
case SocketMessage(event, payload) =>
5252
Logger.debug("received socket message in client" + SocketMessage)
5353
if (!myEvents.contains(event)) {

app/actors/PublishSocketMessageActor.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object PublishSocketMessageActor {
2222
}
2323

2424
class PublishSocketMessageActor(irBasePath: String, mat: Materializer, actorSys: ActorSystem) extends Actor with EventJsonSupport {
25-
25+
2626
val eventActorMap: mutable.HashMap[EventType, ListBuffer[ActorRef]] = new mutable.HashMap[EventType, ListBuffer[ActorRef]]()
2727

2828
override def preStart() {
@@ -46,9 +46,9 @@ class PublishSocketMessageActor(irBasePath: String, mat: Materializer, actorSys:
4646
override def postStop() {
4747
Logger.debug("post stop called in publisher" + self)
4848
}
49-
49+
5050
def receive: PartialFunction[Any, Unit] = {
51-
51+
5252
case StopMessage(toStop) =>
5353
Logger.debug("stop received" + toStop)
5454
for ((k, v) <- eventActorMap) v -= toStop

app/controllers/ApiRouter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ class ApiRouter @Inject()(irController: InstanceRegistryController, sysControlle
4545
case POST(p"/deleteInstance" ? q"instanceID=$instanceID") => irController.handleRequest(action="/delete", instanceID)
4646

4747
}
48-
}
48+
}

app/controllers/FrontendController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ class FrontendController @Inject()(assets: Assets, errorHandler: HttpErrorHandle
3939
def assetOrDefault(resource: String): Action[AnyContent] =
4040
if (resource.contains(".")) assets.at(resource) else index
4141

42-
}
42+
}

app/controllers/InstanceRegistryController.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class InstanceRegistryController @Inject()(implicit system: ActorSystem, mat: Ma
6262

6363
val instanceRegistryUri = config.get[String]("app.instanceRegistryUri")
6464
val instanceRegistryBasePath = config.get[String]("app.instanceRegistryBasePath")
65-
65+
6666
def instances(componentType: String): Action[AnyContent] = Action.async {
6767

6868
ws.url(instanceRegistryUri + "/instances").addQueryStringParameters("ComponentType" -> componentType).get().map { response =>
@@ -133,9 +133,11 @@ class InstanceRegistryController @Inject()(implicit system: ActorSystem, mat: Ma
133133
.post("")
134134
.map { response =>
135135
response.status match {
136+
// scalastyle:off magic.number
136137
case 202 =>
138+
// scalastyle:on magic.number
137139
Ok(response.body)
138-
case x =>
140+
case x: Any =>
139141
new Status(x)
140142
}
141143
}(myExecutionContext)

app/controllers/SystemInfoController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@
6363
PlayVersion.current
6464
}
6565

66-
}
66+
}

app/module/Module.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ class Module extends AbstractModule with ScalaModule {
6060
def configure() {
6161
bind(classOf[MyExecutionContext]).to(classOf[MyExecutionContextImpl])
6262
}
63-
}
63+
}

build.sbt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,24 @@ name := "delphi-management"
44

55
organization := "de.upb"
66

7+
78
version := "0.9.0-SNAPSHOT"
89

10+
911
scalaVersion := "2.12.4"
1012

1113
lazy val management = (project in file(".")).enablePlugins(SbtWeb).enablePlugins(PlayScala)
1214
.enablePlugins(BuildInfoPlugin).
1315
settings(
1416
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
15-
buildInfoPackage := "de.upb.cs.swt.delphi.management"
17+
buildInfoPackage := "de.upb.cs.swt.delphi.management",
18+
(scalastyleSources in Compile) := {
19+
// all .scala files in "src/main/scala"
20+
val scalaSourceFiles = ((scalaSource in Compile).value ** "*.scala").get
21+
val fSep = java.io.File.separator // "/" or "\"
22+
val dirNameToExclude = "app" + fSep + "models" // "com/folder_to_exclude"
23+
scalaSourceFiles.filterNot(_.getAbsolutePath.contains(dirNameToExclude))
24+
}
1625
)
1726

1827
scalastyleConfig := baseDirectory.value / "project" / "scalastyle-config.xml"

client/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app w
1111
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
1212

1313
## Build
14-
Install the swagger-codegen tool available here: https://github.com/swagger-api/swagger-codegen .
14+
Install the swagger-codegen tool available here: [swagger](https://github.com/swagger-api/swagger-codegen) .
1515
Run `ng build` to build the project. The build artifacts will be stored in the `../public` directory. Use the `--prod` flag for a production build.
1616

1717
## Running unit tests
1818

1919
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
2020

21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24-
2521
## Further help
2622

2723
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

client/angular.json

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -98,33 +98,6 @@
9898
}
9999
}
100100
}
101-
},
102-
"client-e2e": {
103-
"root": "e2e/",
104-
"projectType": "application",
105-
"architect": {
106-
"e2e": {
107-
"builder": "@angular-devkit/build-angular:protractor",
108-
"options": {
109-
"protractorConfig": "e2e/protractor.conf.js",
110-
"devServerTarget": "client:serve"
111-
},
112-
"configurations": {
113-
"production": {
114-
"devServerTarget": "client:serve:production"
115-
}
116-
}
117-
},
118-
"lint": {
119-
"builder": "@angular-devkit/build-angular:tslint",
120-
"options": {
121-
"tsConfig": "e2e/tsconfig.e2e.json",
122-
"exclude": [
123-
"**/node_modules/**"
124-
]
125-
}
126-
}
127-
}
128101
}
129102
},
130103
"defaultProject": "client"

0 commit comments

Comments
 (0)