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

Improve app settings #906

Merged
merged 4 commits into from
Oct 21, 2024
Merged

Improve app settings #906

merged 4 commits into from
Oct 21, 2024

Conversation

hmpf
Copy link
Contributor

@hmpf hmpf commented Oct 14, 2024

The new frontend needs different simple settings (like LOGIN_URL) from the old frontend so we need to support that.

We can piggy-back on the (EXTRA|OVERRIDING)_APPS to do this but geant prefers vanilla settings files.

This is an attempt at having our cake and eating it too. Reusing the (EXTRA|OVERRIDING)_APPS-machinery and still making it easy to override everything with separate settings-files.

(This is not the final step in the journey, just an easily reviewable one.)

@hmpf hmpf added documentation Improvements or additions to documentation enhancement New feature or request geant Needed by or originated from geant-argus labels Oct 14, 2024
@hmpf hmpf self-assigned this Oct 14, 2024
@hmpf hmpf requested review from a team October 14, 2024 07:51
Copy link
Collaborator

@elfjes elfjes left a comment

Choose a reason for hiding this comment

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

Yeah this is good, I like it

@hmpf hmpf force-pushed the improve-app-settings branch 3 times, most recently from 77befe7 to 3f04430 Compare October 18, 2024 09:32
@hmpf hmpf force-pushed the improve-app-settings branch from 3f04430 to e04f58d Compare October 18, 2024 12:07
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 37.93103% with 18 lines in your changes missing coverage. Please review.

Project coverage is 83.69%. Comparing base (36723d3) to head (b4f15cd).

Files with missing lines Patch % Lines
src/argus/site/utils.py 30.76% 18 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #906      +/-   ##
==========================================
- Coverage   84.04%   83.69%   -0.35%     
==========================================
  Files          95       95              
  Lines        4111     4134      +23     
==========================================
+ Hits         3455     3460       +5     
- Misses        656      674      +18     

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

hmpf added 4 commits October 21, 2024 08:09
.. and due to this, move the overriding to the end of base settings
.. make sure the examples are valid JSON
@hmpf hmpf force-pushed the improve-app-settings branch from e04f58d to b4f15cd Compare October 21, 2024 06:13
Copy link

@hmpf hmpf merged commit 7757c63 into Uninett:master Oct 21, 2024
11 checks passed
@hmpf hmpf deleted the improve-app-settings branch October 21, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request geant Needed by or originated from geant-argus
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants