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

fix: correct unique constraints and field when org remove event is created #9211

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stebenz
Copy link
Collaborator

@stebenz stebenz commented Jan 20, 2025

Which Problems Are Solved

In a specific situation of a name change of the organization, the unique constraint is still existing even though the org domain is removed, and the fields get only set to org domain not verified and not removed.

How the Problems Are Solved

Remove unique constraints which should not exist anymore.
Remove field which should not exist anymore.
Fix logic for OrgDomainRemoved event, so that fields are removed in the future.

Additional Changes

None

Additional Context

None

@stebenz stebenz self-assigned this Jan 20, 2025
Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 20, 2025 4:32pm

Copy link

Thanks for your contribution @stebenz! 🎉

Please make sure you tick the following checkboxes before marking this Pull Request (PR) as ready for review:

  • I am happy with the code
  • Documentations and examples are up-to-date
  • Logical behavior changes are tested automatically
  • No debug or dead code
  • My code has no repetitions
  • The PR title adheres to the conventional commit format
  • The example texts in the PR description are replaced.
  • If there are any open TODOs or follow-ups, they are described in issues and link to this PR
  • If there are deviations from a user stories acceptance criteria or design, they are agreed upon with the PO and documented.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

Attention: Patch coverage is 6.66667% with 14 lines in your changes missing coverage. Please review.

Project coverage is 62.51%. Comparing base (60857c8) to head (96693e6).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
cmd/setup/47.go 0.00% 13 Missing ⚠️
internal/repository/org/domain.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9211      +/-   ##
==========================================
+ Coverage   62.50%   62.51%   +0.01%     
==========================================
  Files        1597     1598       +1     
  Lines      149401   149437      +36     
==========================================
+ Hits        93382    93421      +39     
+ Misses      51428    51427       -1     
+ Partials     4591     4589       -2     
Flag Coverage Δ
core-integration-tests-postgres 36.78% <6.66%> (+0.02%) ⬆️
core-unit-tests 46.28% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant