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

Remove support for UI v1 #555

Merged
merged 5 commits into from
Dec 12, 2024
Merged

Remove support for UI v1 #555

merged 5 commits into from
Dec 12, 2024

Conversation

mirekdlugosz
Copy link
Collaborator

Now that new UI is available both upstream and downstream, we can remove traces of old UI.

The main thing is removing conditionals around use_uiv2 setting, and promoting what used to be behind conditional to be the only path. With that out of the way, we can also fix Login.login() to stop navigating to sources and drop Wizard component. The last part also allows us to simplify DTOs (source DTO was following a pattern where each attribute mapped to single step of wizard modal). Finally, I put one consistency fix I noticed while working on all that.

See individual commit messages for details. I would prefer to not squash them during merge.

This is semi-reversal of commits introduced in GitHub PR #543. All the
conditionals around `use_uiv2` setting are dropped. What used to be
inside conditional is now unversioned path, while what used to be v1
path is now removed (this applies mainly to field definitions and values).

This commit leaves around a bit of dead code that is going to be removed
in subsequent commits.
UIv2 does not use wizard component. Remove support for it from Camayoc.
This allows us to simplify AddSourceDTO, as now it can hold source type
directly - earlier it had to hold special DTO that only had source type,
because each AddSourceDTO parameter mapped to wizard step.
Other action DTO classes (AddSourceDTO, TriggerScanDTO) use just _form
attribute names, without _dto suffix. AddCredentialDTO was the only one
standing out.
@mirekdlugosz mirekdlugosz requested review from a team December 11, 2024 15:23
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.85%. Comparing base (7c478ca) to head (8c6bf4a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #555   +/-   ##
=======================================
  Coverage   76.85%   76.85%           
=======================================
  Files           7        7           
  Lines         700      700           
=======================================
  Hits          538      538           
  Misses        162      162           

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

Copy link
Member

@infinitewarp infinitewarp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the quick post-release cleanup!

@mirekdlugosz mirekdlugosz merged commit bf9bbbc into main Dec 12, 2024
11 checks passed
@mirekdlugosz mirekdlugosz deleted the drop-ui-v1 branch December 12, 2024 09:57
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