-
Notifications
You must be signed in to change notification settings - Fork 18
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
refactor: Migrate PUT /admin/groups/<groupIri>/status to Tapir (DEV-1588) #3075
Conversation
✅ Linked to Story DEV-1588 · DSP-API: Expose admin/groups routes with ZIO HTTP |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3075 +/- ##
===========================================
+ Coverage 11.74% 88.66% +76.91%
===========================================
Files 246 263 +17
Lines 22907 22408 -499
===========================================
+ Hits 2690 19867 +17177
+ Misses 20217 2541 -17676 ☔ View full report in Codecov by Sentry. |
Is it a 1:1 refactor? Because some of these tapir migration PRs, I can't follow at all. |
I would say yes, but because this was so much spaghetti code some not directly related cleanups can appear in these PRs. Please as detailed questions, or I can give you you short walk through tomorrow morning. |
integration/src/test/scala/org/knora/webapi/e2e/admin/GroupsADME2ESpec.scala
Outdated
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/responders/admin/GroupsResponderADM.scala
Outdated
Show resolved
Hide resolved
webapi/src/main/scala/org/knora/webapi/responders/admin/GroupsResponderADM.scala
Outdated
Show resolved
Hide resolved
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.
This PR breaks the delete group endpoint:
DELETE {{ dsp_api_url }}/admin/groups/{{groupIri}}
I have tried it out locally and get a 500 response.
Please bring back the DELETE
test in GroupsADME2ESpec
and fix it.
True, that why I put the short explanation in the PR description which would bring it back working in follow up PR. No matter of what, I brought it back and DELETE route as well as test are working. |
It's crucial to ensure that changes merged into the main branch don't break functionality, no matter the intention. Even if there's a plan to fix it later, breaking changes can disrupt the workflow for other team members. This approach can also cause confusion and frustration among team members working on dev who rely on the stability of the main branch for their work. Moving forward, let's prioritise keeping the main branch in a stable state. This helps maintain the reliability of our codebase and ensures smoother collaboration among team members. Thank you for your understanding and cooperation in maintaining the stability of our codebase. |
Smoother collaboration in my opinion is more than the stable codebase state only. I'm not saying my way of solving this issue was perfect nor the safest. Maybe I shouldn't delete methods which were shared between both routes? Maybe I should migrate also DELETE route in this PR? Or maybe because I already removed that code and knowing the facts:
Instead of that, the entire day went between bouncing the comments and waiting for the replies/re-reviews. And this is not the first time, when I have the feeling there is lack of balance between guarding the main branch and common sense, trust, cooperation on this kind of blocked by you reviews. From the other hand, it was OK for some exceptions when you are asking for them. So I would be thankful for more trust and smoother cooperation in following PRs. |
Pull Request Checklist
Task Description/Number
Issue Number: DEV-1588
In order to keep this PR small, needed to comment out a failing tests, which I will bring back in following PR that migrates methods related to that test.
EDIT - the above is not relevant anymore.
PR Type
Basic requirements for bug fixes and features
Does this PR introduce a breaking change?
Does this PR change client-test-data?