-
Notifications
You must be signed in to change notification settings - Fork 9
Add the endpoints to update 1 or many versions of the app or disable all + Replacing all asserts for testing in the service tests layer + more tests + remove asserts #72
Conversation
aa9464d
to
595323a
Compare
b5dd0b4
to
a9114a0
Compare
793a5bd
to
af89145
Compare
8aff3fe
to
cb0c581
Compare
cb0c581
to
0c41ae7
Compare
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.
Looks good to me Camila. One small comment.
I haven't got a chance to verify, just code review for now. If no one else verifies, I will get a chance later.
cf6d3fa
to
4a168dc
Compare
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.
POST /apps/:id/versions/batch-disable
Should this be a PUT? Also a small suggestion - I think you could just have "disable" instead of "batch-disable" as not including a version ID in the path implies that all versions will be disabled. So it would look like:
PUT /apps/:id/versions/disable
Hi @craicoverflow, I agree with your suggestions. It was defined by @davidffrench so I will let it up to him. |
Since it is not following REST naming standards, the consensus online was to use a POST for these type of endpoints. I am also not overly comfortable with the name |
…end the need to disable all versions and/or 1 to N of them (AEROGEAR-8356)
4a168dc
to
f093e1a
Compare
@davidffrench I prefer to use "disable" as suggested by @craicoverflow . Since we have a no better name wdyt over move forward with this one and after if you would like then it can be changed as you wish? |
What do you dislike about "disable". How about "disable-all"? |
@camilamacedo86 @craicoverflow |
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 have verified , Code changes look good so I am happy to approve
@austincunningham, @davidffrench and @craicoverflow |
…rogear#72) feat(reconcile): added a flag to skip validation of the namespace
Motivation
https://issues.jboss.org/browse/AEROGEAR-8356
https://issues.jboss.org/browse/AEROGEAR-8611
https://issues.jboss.org/browse/AEROGEAR-8612
What
AppPostgreSQLRepository
andPostgreSQLRepositor
interfaces from pkg/web/apps/apps_psql_repository.go since they are not needed. TheNewPostgreSQLRepository
func uses the genericRepository
interface.Why
How
Verification Steps
Setup project and database to do the tests.
Check endpoint to update all versions by POSTMAN
apps
in order to get a valid id/apps/:id/versions/disable
with a JSON with the version struct or empty as the following examples.Check endpoint to update 1 or N versions by POSTMAN
apps
in order to get a valid idapps/:id
to get the version struct/apps/:id/versions
with a JSON with the []versions ( list of versions ).Checklist:
Progress
Additional Notes