-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#50: Create or adjust endpoint for accepting and saving checkpoint data #74
#50: Create or adjust endpoint for accepting and saving checkpoint data #74
Conversation
JaCoCo agent module code coverage report - spark:2 - scala 2.12.12
|
JaCoCo server module code coverage report - scala 2.12.12
|
…ver-adjustments' into feature/#50-Create-or-adjust-endpoint-for-accepting-and-saving-checkpoint-data # Conflicts: # server/src/main/scala/za/co/absa/atum/web/model/Checkpoint.scala
…ver-adjustments' into feature/#50-Create-or-adjust-endpoint-for-accepting-and-saving-checkpoint-data # Conflicts: # project/plugins.sbt
32cf9e7
to
1238951
Compare
3581485
to
e710558
Compare
…accepting-and-saving-checkpoint-data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- pull
- run test (sbt clean test)
- BaseApiController.scala - problem with imports - failing tests
Solution proposal (tested):
import jakarta.servlet.http.HttpServletRequest ---- remove import javax.servlet.http.HttpServletRequest ---- add
- ControlMeasureController.scala
Solution proposal (tested):
import jakarta.servlet.http.HttpServletRequest ---- remove import javax.servlet.http.HttpServletRequest ---- add
- failing test "TestServiceSpec"
An exception or error caused a run to abort: Failed to load ApplicationContext java.lang.IllegalStateException: Failed to load ApplicationContext
- BaseApiController.scala - problem with imports - failing tests
- code coverage - visible very low code coverage of changed/touched scala files.
Is here plan to focus the low code coverage of changed/touched classes? |
private val config = ConfigFactory.load("application.properties") | ||
|
||
override def dbConfig: Config = config.getConfig("postgres") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
|
||
private def databaseConfig: Config = { | ||
val baseConfig = AtumConfig.dbConfig | ||
Map.empty.foldLeft(baseConfig) { case (acc, (configPath, configVal)) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of this code?
It's a foldLeft
on an empty Map, so no op.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a TODO comment as promised & created a new ticket for this
…accepting-and-saving-checkpoint-data
…ts in Scala that goes to the DB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- pull
- code review
- build
- test run
- code coverage analysis: Missing unit tests at least for new code. Better for improved/changed code.
- manual API test
class CheckpointStatusTypeRef extends TypeReference[CheckpointStatus.type] | ||
|
||
|
||
// To check By Forgiveness |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgotten comment?
I am missing unit tests for at least new code. Is their implementation planned? |
After last commit build is failing:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- code reviewed
- pulled
- built
- run
@miroslavpojer tests will be part of DB test PR, it would be too big here; otherwise, no need to test model/ and server/ so far is actually not doing too much - no crazy data transformations etc, mostly just calling DB |
PrototypeController
and injectedDatabaseService
for communicating with the db.DatabaseService
.AtumConfig
.runs
class for the server to be able to communicate with thesql
function that create a checkpoint in the database.Closes Create (adjust) endpoint for accepting and saving checkpoint data #50