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

Upload workspace audit - user feedback #721

Merged
merged 10 commits into from
Sep 3, 2024

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented Sep 3, 2024

  • Only show the can_compute icon for WRITER and OWNER levels
  • Color the false icons black instead of red, since they don't indicate errors
  • Clean up audit explanations
  • Clean up unused code
  • Add tests for audit result dataclasses

Instead of having the page title just have a colon followed by
nothing when auditing all upload workspaces, instead check if there
is an object and if not, display "all upload workspaces". Otherwise,
display the object str as before.
This makes more sense; red typically indicates an error while black
indicates "no but not a problem".
Do not show can_compute for readers. Also, add tests for the
audit result classes so that we can test the get_table_dictionary
method. In this case, there is no need to test the individual
classes, since they are all just inheriting from the main class
without much different behavior.
The auth domain audit explanation still had the previous behavior
(before Cat's review and subsequent changes). Update the explanation
to reflect the actual behavior.
The coverage job is failing because github added a breaking change
in v4.4 of the upload-artifact job such that hidden files were no
longer uploaded by default. This breaks the current coverage setup
where the coverage file is hidden (.coverage). This change causes
the upload-artifact job to fail if no files are found, which is
really what we want. With this change, I expect all pytest jobs
to fail at the step of uploading the coverage file.
This way they won't be considered hidden files by the upload-artifacts
action.
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.95%. Comparing base (c7bf1e5) to head (3f04ec3).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #721      +/-   ##
==========================================
+ Coverage   97.93%   97.95%   +0.01%     
==========================================
  Files         149      149              
  Lines       15900    16040     +140     
==========================================
+ Hits        15572    15712     +140     
  Misses        328      328              

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

@amstilp amstilp merged commit d51c74f into main Sep 3, 2024
10 checks passed
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