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

Refractor/tomato to sofia #947

Merged
merged 6 commits into from
Nov 27, 2024
Merged

Refractor/tomato to sofia #947

merged 6 commits into from
Nov 27, 2024

Conversation

lodewiges
Copy link
Contributor

@lodewiges lodewiges commented Nov 21, 2024

manual command on the server are needed but not required

Replace tomato with sofia so the files would be clearer

Removed mailgun credentials for credentials.enc
Also updated the link with sofia in credentials.enc dude to recent db:replant on staging

for the future we could look into different credentials files so that the server credentails are never present on somebodys laptop, this is a new feature in rails 6

https://www.rubyinrails.com/2019/04/04/rails-6-supports-multi-environment-credentials/

fixes #942

Please check the credentials file locally

@@ -12,7 +12,7 @@ class AmberOauth2 < OmniAuth::Strategies::OAuth2

def authorize_params
params = super
params[:scope] = 'public tomato'
params[:scope] = 'public tomato sofia'
Copy link
Contributor

Choose a reason for hiding this comment

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

is it necessary to keep tomato here? just asking, I genuinely don't know

Copy link
Contributor

@DrumsnChocolate DrumsnChocolate left a comment

Choose a reason for hiding this comment

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

make sure to test this thoroughly on staging

for the future we could look into different credentials files so that the server credentails are never present on somebodys laptop, this is a new feature in rails 6

I agree this would be nice, but it's not on the top of the list of things we should fix. But you can add it as an issue. Also make sure to mention in the issue that this probably means we should take extra care that we have a backup of these credentials somewhere.

remove tomato paramater
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (staging@465dc99). Learn more about missing BASE report.

Files with missing lines Patch % Lines
lib/omniauth/strategies/amber_oauth2.rb 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             staging     #947   +/-   ##
==========================================
  Coverage           ?   52.37%           
==========================================
  Files              ?       55           
  Lines              ?     1178           
  Branches           ?        0           
==========================================
  Hits               ?      617           
  Misses             ?      561           
  Partials           ?        0           

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

@lodewiges lodewiges added this pull request to the merge queue Nov 27, 2024
Merged via the queue into staging with commit 19f0502 Nov 27, 2024
5 checks passed
@lodewiges lodewiges deleted the refractor/tomato branch November 27, 2024 19:09
DrumsnChocolate added a commit that referenced this pull request Nov 29, 2024
* chore(deps): update dependency paranoia to v3 (#931)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Edited the env file (#944)

* edited the env file

* changed company name to UTF-8

* chore(deps): update dependency puma to '~> 6.4.0' [security] (#935)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/delete-package-versions action to v5 (#906)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency rails to v7.0.8.1 [security] (#918)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update docker/build-push-action action to v6 (#928)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update docker/login-action action to v3 (#886)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(tests): add code coverage reporting (#891)

* feat(tests): add code coverage reporting

* fix: correct coverage path

* refactor: use simplecov-lcov

* fix: indentation in Gemfile.lock

* fix: remove test filters

* feat(README): add badge

* refactor: try tokenless report uploading

* chore: update codecov-action

* chore: update codecov-action

* fix(cd): pass CODECOV_TOKEN To ci

* Revert "chore(deps): update docker/login-action action to v3 (#886)" (#951)

This reverts commit d546681. due to CI failure

* chore(deps): update codecov/codecov-action action to v5 (#950)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency puma to v6.4.3 [security] (#948)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/upload-artifact action to v4 (#949)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Refractor/tomato to sofia (#947)

* Intial commit

* updated apliction.rb

* Fixed mistake in credentials

* Made it so the file is backwards compatiable

* Fixed a typo

* Update amber_oauth2.rb

remove tomato paramater

* Remove development title lux ad mosam (#946)

* intial commit

* Fix typo

* update tomato to sofia

* updated with suggestion

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: lodewiges <[email protected]>
Co-authored-by: Guido de Jong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refractor tomato to sofia
2 participants