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

Configuration variables cleanup #5313

Open
17 of 20 tasks
shaidar opened this issue Mar 2, 2023 · 7 comments
Open
17 of 20 tasks

Configuration variables cleanup #5313

shaidar opened this issue Mar 2, 2023 · 7 comments

Comments

@shaidar
Copy link
Contributor

shaidar commented Mar 2, 2023

We are working on managing Micromasters Heroku configuration variables through Saltstack similar to how we manage those for the other apps. When looking through the different envs (CI, RC, and Production) and searching through settings.py, the keys below came into question. It would be great if someone can confirm whether those keys can be removed:

  • ELASTICSEARCH_DEFAULT_PAGE_SIZE
  • ELASTICSEARCH_HTTP_AUTH
  • ELASTICSEARCH_INDEX
  • ELASTICSEARCH_SHARD_COUNT
  • ELASTICSEARCH_URL
  • EXAMS_AUDIT_AWS_ACCESS_KEY_ID
  • EXAMS_AUDIT_AWS_SECRET_ACCESS_KEY
  • EXAMS_AUDIT_ENABLED
  • EXAMS_AUDIT_ENCRYPTION_FINGERPRINT
  • EXAMS_AUDIT_ENCRYPTION_PUBLIC_KEY
  • EXAMS_SSO_CLIENT_CODE
  • EXAMS_SSO_PASSPHRASE
  • EXAMS_SSO_URL
  • FEATURE_ENABLE_EDX_EXAMS
  • FEATURE_ENABLE_PROGRAM_LETTER
  • FEATURE_MITXONLINE_LOGIN
  • FEATURE_PEARSON_EXAMS_SYNC
  • FEATURE_TURN_PAYMENT_OFF
  • FEATURE_USE_COMBINED_FINAL_GRADE
  • MICROMASTERS_ECOMMERCE_EMAIL
@shaidar
Copy link
Contributor Author

shaidar commented Mar 2, 2023

Anna verified that the checked off FEATURES above are no longer needed.

@arslanashraf7
Copy link
Contributor

arslanashraf7 commented Mar 2, 2023

My initial thought:

I think all the config keys related to Elastic Search might not have been used now since we have migrated from Elastic Search to Open Search recently.

Specifically looked briefly at the settings file changes there, we have removed these from the settings in the code and I don't see their usage in the code anymore which makes sense.

@pdpinch
Copy link
Member

pdpinch commented Mar 6, 2023

@rhysyngsun can you take a look at this? I think all _EXAMS_ settings are moot now that we're not working with Pearson any more.

@rhysyngsun
Copy link
Contributor

The EXAMS settings don't appear to provide any functionality right now based on a quick code read, but there are still some lingering definitions of them in the code. Just to be sure nothing breaks, those should probably be removed although I don't think anything would break.

@rhysyngsun
Copy link
Contributor

Still used

  • FEATURE_MITXONLINE_LOGIN
  • FEATURE_ENABLE_PROGRAM_LETTER
  • MICROMASTERS_ECOMMERCE_EMAIL

Can be removed

  • FEATURE_PEARSON_EXAMS_SYNC

@pdpinch
Copy link
Member

pdpinch commented Mar 6, 2023

I wrote an issue for removing the lingering code for the EXAMS settings, #5314

@shaidar
Copy link
Contributor Author

shaidar commented Mar 15, 2023

@annagav Does the latest PR of yours mean we can remove all the EXAMS_* settings from the Heroku configuration variables listed above?

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

No branches or pull requests

4 participants