Skip to content
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

Merged
merged 15 commits into from
Mar 4, 2024

Conversation

mpro7
Copy link
Contributor

@mpro7 mpro7 commented Feb 29, 2024

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

  • build/chore: maintenance tasks (no production code change)
  • docs: documentation changes (no production code change)
  • feat: represents new features
  • fix: represents bug fixes
  • perf: performance improvements
  • refactor: represents production code refactoring
  • test: adding or refactoring tests (no production code change)

Basic requirements for bug fixes and features

  • Tests for the changes have been added
  • Docs have been added / updated

Does this PR introduce a breaking change?

  • Yes

Does this PR change client-test-data?

  • Yes

Copy link

linear bot commented Feb 29, 2024

Copy link

swarmia bot commented Feb 29, 2024

@mpro7 mpro7 self-assigned this Feb 29, 2024
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.66%. Comparing base (eac5751) to head (6e0b2c2).
Report is 96 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@mpro7 mpro7 marked this pull request as ready for review February 29, 2024 15:14
@siers
Copy link
Contributor

siers commented Feb 29, 2024

Is it a 1:1 refactor? Because some of these tapir migration PRs, I can't follow at all.

@mpro7
Copy link
Contributor Author

mpro7 commented Feb 29, 2024

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.

@mpro7 mpro7 requested a review from seakayone March 1, 2024 09:07
Copy link
Contributor

@seakayone seakayone left a 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.

@mpro7 mpro7 requested a review from seakayone March 1, 2024 12:29
@mpro7
Copy link
Contributor Author

mpro7 commented Mar 1, 2024

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.

@seakayone
Copy link
Contributor

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.

@mpro7
Copy link
Contributor Author

mpro7 commented Mar 1, 2024

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:

  • we don't deploy main branch directly to the production, only to dev server,
  • the not working route/test would be working again with next PR, which could be already ready to merge or even merged too,
    I knew it would be done nice and easy. With of course some doze of trust from your side.

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.

@mpro7 mpro7 merged commit 2ca95ed into main Mar 4, 2024
13 checks passed
@mpro7 mpro7 deleted the dev-1588-7 branch March 4, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants