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

Refactoring tab visibility - use decorator instead of helper #14349

Merged
merged 4 commits into from Jun 30, 2023

Conversation

ncounter
Copy link
Contributor

@ncounter ncounter commented May 18, 2023

Instead of passing around an array of action[:type]s only to decide whether or not to show a request action tab, let the object itself tell about its tabs visibility instead.

This PR refactors the way the request page tabs visibility is computed by moving the logic from an helper to a decorator class, based also on this discussion.

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label May 18, 2023
@ncounter ncounter force-pushed the refactoring-tab-visibility branch 4 times, most recently from ca7cdfc to 9fcd487 Compare May 18, 2023 11:36
@ncounter ncounter marked this pull request as ready for review May 18, 2023 11:37
@ncounter ncounter force-pushed the refactoring-tab-visibility branch from 9fcd487 to 71b4ed9 Compare May 18, 2023 12:21
@codecov
Copy link

codecov bot commented May 18, 2023

Codecov Report

Merging #14349 (7cf0344) into master (71895ba) will decrease coverage by 0.03%.
The diff coverage is 51.85%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14349      +/-   ##
==========================================
- Coverage   87.21%   87.19%   -0.03%     
==========================================
  Files         743      744       +1     
  Lines       24966    24988      +22     
==========================================
+ Hits        21774    21788      +14     
- Misses       3192     3200       +8     

@hellcp-work hellcp-work force-pushed the refactoring-tab-visibility branch 2 times, most recently from b3858f8 to 6f1561b Compare May 29, 2023 11:00
@danidoni
Copy link
Contributor

@hennevogel do you miss something for this PR to be approved?

@ncounter ncounter merged commit 073e6f6 into openSUSE:master Jun 30, 2023
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants