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

Fix ActiveRecord::RecordNotFound when clicking on 'step-by-step activity' #9503

Merged
merged 9 commits into from
Apr 15, 2021

Conversation

aliciapaz
Copy link
Contributor

@aliciapaz aliciapaz commented Apr 13, 2021

Fixes #9475
This fixes the error by removing the missing id from the URL. However, I'm concerned about this not being a solution but just a workaround.

It would be helpful to understand:
What does this id do in that URL? why is that node missing?

Thanks in advance 😸

@gitpod-io
Copy link

gitpod-io bot commented Apr 13, 2021

@aliciapaz aliciapaz changed the title Fix ActiveRecord::RecordNotFound when clicking on 'step-by-step activity' #9475 Fix ActiveRecord::RecordNotFound when clicking on 'step-by-step activity' Apr 13, 2021
@codeclimate
Copy link

codeclimate bot commented Apr 13, 2021

Code Climate has analyzed commit f05fcee and detected 0 issues on this pull request.

View more on Code Climate.

@codecov
Copy link

codecov bot commented Apr 13, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@8c729b2). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 188a3de differs from pull request most recent head f05fcee. Consider uploading reports for the commit f05fcee to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9503   +/-   ##
=======================================
  Coverage        ?   56.88%           
=======================================
  Files           ?       98           
  Lines           ?     6111           
  Branches        ?        0           
=======================================
  Hits            ?     3476           
  Misses          ?     2635           
  Partials        ?        0           

@cesswairimu
Copy link
Collaborator

cesswairimu commented Apr 15, 2021

Hi @aliciapaz , looks likes there are some failing tests on tags that do not seem to be related to your changes

===ERROR I18nTest#test_should_choose_i18n_for_tag/show (209.45s)
Minitest::UnexpectedError:         ActionView::Template::Error: missing interpolation argument :search in "Aucun résultat trouvé en cherchant \"%{search}\"" ({:tag=>"some-tag"} given)
            app/helpers/application_helper.rb:158:in `translation'
            app/views/tag/show/_tab_content.html.erb:10:in `_app_views_tag_show__tab_content_html_erb__2599195840854876495_47384223172900'
            app/views/tag/show.html.erb:158:in `block in _app_views_tag_show_html_erb___2792876303108153280_47384223051420'
            app/views/tag/show.html.erb:149:in `_app_views_tag_show_html_erb___2792876303108153280_47384223051420'
            app/controllers/tag_controller.rb:161:in `block (2 levels) in show'
            app/controllers/tag_controller.rb:160:in `show'
            test/integration/I18n_test.rb:415:in `block (2 levels) in <class:I18nTest>'
            test/integration/I18n_test.rb:411:in `each'
            test/integration/I18n_test.rb:411:in `block in <class:I18nTest>'

=ERROR I18nTest#test_should_choose_i18n_for_tag/widget (210.08s)
Minitest::UnexpectedError:         ActionView::Template::Error: missing interpolation argument :search in "Aucun résultat trouvé en cherchant \"%{search}\"" ({:tag=>"some-tag"} given)
            app/helpers/application_helper.rb:158:in `translation'
            app/views/tag/widget.html.erb:14:in `_app_views_tag_widget_html_erb__1813037706612507661_47384203707320'
            app/controllers/tag_controller.rb:250:in `widget'
            test/integration/I18n_test.rb:425:in `block (2 levels) in <class:I18nTest>'
            test/integration/I18n_test.rb:421:in `each'
            test/integration/I18n_test.rb:421:in `block in <class:I18nTest>'

= FAIL I18nTest#test_should_choose_i18n_for_user/_form_+_user/new (211.99s)
        <Nom d'utilisateur·ice> expected but was
        <Nom d'utilisat⋅eur·ice>..
        Expected 0 to be >= 1.
        test/integration/I18n_test.rb:198:in `block (2 levels) in <class:I18nTest>'
        test/integration/I18n_test.rb:194:in `each'
        test/integration/I18n_test.rb:194:in `block in <class:I18nTest>'

I will try and restart the build. Thanks for working on this

@cesswairimu cesswairimu reopened this Apr 15, 2021
@gitpod-io
Copy link

gitpod-io bot commented Apr 15, 2021

Copy link
Contributor

@RuthNjeri RuthNjeri left a comment

Choose a reason for hiding this comment

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

Thanks, @aliciapaz. This looks good to me. You can rebase/squash to reduce the number of commits.

@RuthNjeri RuthNjeri merged commit 128206c into publiclab:main Apr 15, 2021
@RuthNjeri
Copy link
Contributor

I have actually done a squash through the merge. Thanks again @aliciapaz

@RuthNjeri
Copy link
Contributor

Please have a look at #9511, it would seem that removing the nid would remove a reference to the node that inserts pre-existing text.

jywarren pushed a commit that referenced this pull request Apr 15, 2021
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
…ity' (publiclab#9503)

* Update _node_meta.html.erb (publiclab#8097)

* Delete GCI_MENTOR_GUIDELINES.md

GCI discontinued

* remove nid 15322 in dropdown menu

* update _node_meta.html.erb

Co-authored-by: Pranav Addepalli <[email protected]>
Co-authored-by: Sasha Boginsky <[email protected]>
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
…ity' (publiclab#9503)

* Update _node_meta.html.erb (publiclab#8097)

* Delete GCI_MENTOR_GUIDELINES.md

GCI discontinued

* remove nid 15322 in dropdown menu

* update _node_meta.html.erb

Co-authored-by: Pranav Addepalli <[email protected]>
Co-authored-by: Sasha Boginsky <[email protected]>
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
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.

ActiveRecord::RecordNotFound in EditorController#post
5 participants