-
Notifications
You must be signed in to change notification settings - Fork 2
Update Ruby to be compatible with Heroku stack (TC) #1594
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
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
danhalson
approved these changes
Oct 20, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Update Ruby to be compatible with Heroku stack. This is a tech debt issue but on DWG plan as a planned change.
We can then move to using new Heroku stack after we do this.
This work should have been covered in https://github.com/NCCE/teachcomputing.org-issues/issues/2178 but @dumbledad missed that it covered both curriculum and teachcomputing.
Related to
Acceptance Criteria
Splatted
We should keep a list of splatted args for proper refactoring later.
rspec spec/components/non_bordered_cards_component_spec.rb:35
:NonBorderedCardsComponent
/app/app/views/landing_pages/_contributing-partners-slice.html.erb
/app/spec/components/non_bordered_cards_component_spec.rb
rspec ./spec/views/pages/impact-and-evaluation.html_spec.rb:12
:LogoCardsComponent
&RelatedLinksComponent
/app/previews/components/logo_cards_component_preview.rb
/app/previews/components/related_links_component_preview.rb
/app/spec/components/logo_cards_component_spec.rb
rspec ./spec/components/document_cards_component_spec.rb:86
:DocumentCardsComponent
/app/previews/components/document_cards_component_preview.rb
/app/spec/components/document_cards_component_spec.rb
rspec ./spec/views/pages/supporting-partners.hmtl_spec.rb:26
:HeroMediaComponent
/app/previews/components/hero_media_component_preview.rb
/app/spec/components/hero_media_component_spec.rb
/app/app/views/pages/supporting-partners.html.erb
rspec ./spec/components/non_bordered_cards_component_spec.rb:89
:NonBorderedCardsComponent
/app/previews/components/non_bordered_cards_component_preview.rb
/app/spec/components/non_bordered_cards_component_spec.rb
rspec ./spec/components/report_card_component_spec.rb:70
:ReportCardComponent
&ImageReportCardComponent
/app/previews/components/image_report_card_component_preview.rb
/app/previews/components/report_card_component_preview.rb
/app/spec/components/image_report_card_component_spec.rb
/app/spec/components/report_card_component_spec.rb
rspec ./spec/views/pages/contributing-partners.html_spec.rb:12
:HeroComponent
/app/app/views/pages/contributing-partners.html.erb
/app/previews/components/hero_component_preview.rb
rspec ./spec/components/notice_component_spec.rb:42
:NoticeComponent
/app/spec/components/notice_component_spec.rb
rspec ./spec/system/pages/static_pages_spec.rb:51
:BorderedCardsComponent
/app/app/views/pages/get-involved.html.erb
/app/spec/components/bordered_list_cards_component_spec.rb
rspec ./spec/components/provider_logos_component_spec.rb:17
:ProviderLogosComponent
/app/spec/components/provider_logos_component_spec.rb
rspec ./spec/components/bordered_cards_component_spec.rb:93
:BorderedListCardsComponent
/app/spec/components/bordered_cards_component_spec.rb
TODO
yarn set version berry
docker compose down --remove-orphans --volumes --rmi local
sh ./scripts/setup.sh
rm Gemfile.lock
docker compose run --rm --no-deps web bundle install
rm yarn.lock
docker compose run --rm --no-deps web yarn install
docker compose up
spec spec/requests/reject_unproxied_requests_spec.rb:42
rspec spec/components/non_bordered_cards_component_spec.rb:35
rspec --seed 42 --fail-fast
to fix the orderrspec ./spec/views/pages/impact-and-evaluation.html_spec.rb:12
rspec ./spec/requests/certificates/cs_accelerator/complete_spec.rb:82
tried to create Proc object without a block
error in Statesman gemNotImplementedError
error Stateman throws when loadingmodels/achievement.rb
include
stylerspec ./spec/components/document_cards_component_spec.rb:86
rspec ./spec/views/pages/supporting-partners.hmtl_spec.rb:26
rspec ./spec/components/non_bordered_cards_component_spec.rb:89
rspec ./spec/components/report_card_component_spec.rb:70
rspec ./spec/components/report_card_component_spec.rb:59
rspec ./spec/components/community_activity_component_spec.rb:70
rspec ./spec/views/pages/contributing-partners.html_spec.rb:12
rspec ./spec/requests/certificates/cs_accelerator/update_user_programme_pathway_spec.rb:39
rspec ./spec/views/pages/enrolment/primary-certificate.html_spec.rb:65
rspec ./spec/components/notice_component_spec.rb:42
rspec ./spec/requests/api/achievements_spec.rb:16
rspec ./spec/requests/api/user_programme_enrolments_spec.rb:56
rspec ./spec/components/course_activity_component_spec.rb:84
rspec ./spec/system/pages/static_pages_spec.rb:51
rspec ./spec/requests/api/cache_spec.rb:12
rspec ./spec/components/hero_media_component_spec.rb:49
rspec ./spec/components/provider_logos_component_spec.rb:17
rspec ./spec/requests/api/activities_spec.rb:15
rspec ./spec/components/course_activity_component_spec.rb:64
rspec ./spec/requests/api/users_spec.rb:22
rspec ./spec/components/bordered_cards_component_spec.rb:93
rspec ./spec/system/pages/static_pages_spec.rb
fails in CircleCI but not locally/app/.circleci/config.yml
tobrowser-tools: circleci/[email protected]
browser-tools/install-browser-tools
before runningrspec
gem 'ims-lti', '2.3.2'
to fix review appsArgumentError (unknown keyword: :size)
showing up in Sentry and PaperTrailif @file_size.present?
to/app/app/components/file_card_component/file_card_component.html.erb
redis-rails
client which throws:size
argument error and is now handled by Rails itself anyway