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

Refactor old error_messages usage and added errorMessage partial #8923

Merged
merged 5 commits into from
Jan 5, 2021

Conversation

Manasa2850
Copy link
Member

@Manasa2850 Manasa2850 commented Jan 2, 2021

Fixes #8937 (<=== Add issue number here)

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@Manasa2850 Manasa2850 requested a review from a team as a code owner January 2, 2021 17:38
@gitpod-io
Copy link

gitpod-io bot commented Jan 2, 2021

@codecov
Copy link

codecov bot commented Jan 2, 2021

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8923   +/-   ##
=======================================
  Coverage        ?   81.87%           
=======================================
  Files           ?      100           
  Lines           ?     5943           
  Branches        ?        0           
=======================================
  Hits            ?     4866           
  Misses          ?     1077           
  Partials        ?        0           

@Manasa2850 Manasa2850 marked this pull request as draft January 2, 2021 18:03
@Manasa2850 Manasa2850 marked this pull request as ready for review January 3, 2021 16:23
@Manasa2850
Copy link
Member Author

@jywarren @cesswairimu could you please review this? If this PR is fine, I'll create first timer issues for the rest of the files to use the partial. Thanks in advance!

@codeclimate
Copy link

codeclimate bot commented Jan 3, 2021

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

View more on Code Climate.

@Uzay-G
Copy link
Member

Uzay-G commented Jan 5, 2021

This seems good. Could you maybe take a screenshot of the error messages rendering correctly?

Copy link
Collaborator

@cesswairimu cesswairimu left a comment

Choose a reason for hiding this comment

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

Hey @Manasa2850 thanks a lot for opening this...love the error partial, we could refactor all the other views after this is merged. I would like to pint out that we are planning to remove the dynamic gem and that is already done here #4575, you could merge this branch with yours and then we can start from there...what do you think?

@cesswairimu
Copy link
Collaborator

there are also a few files left, would you like to change those ones too? Its also okay if you would like to handle only the features templates and I can create a breakout issue for that alone and you wouldn't need to worry about the PR I mentioned above...its totally up to you let me know what you feel would be best for you. Thanks again

@Manasa2850
Copy link
Member Author

Hi @cesswairimu I thought of creating first timer issues for the refactoring in the remaining files. So I think we'll be able to remove the dynamic gem only after changes have been made in all those files.

@cesswairimu
Copy link
Collaborator

cesswairimu commented Jan 5, 2021

Great, sounds good, let me create a issue we can link to this and have it merged..looks good from gitpod thanks

@cesswairimu cesswairimu merged commit 0638219 into publiclab:main Jan 5, 2021
@cesswairimu
Copy link
Collaborator

@Manasa2850 when you do create the ftos kindly link them to the main issue for organization. thanks @Uzay-G for the review 🎉

@Manasa2850
Copy link
Member Author

Sure I'll do that @cesswairimu. Thank you!

manchere pushed a commit to manchere/plots2 that referenced this pull request Feb 13, 2021
…ubliclab#8923)

* added error message partial

* added new line

* fixed failing test

* changed new file

* updated new.html.erb
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this pull request Mar 2, 2021
…ubliclab#8923)

* added error message partial

* added new line

* fixed failing test

* changed new file

* updated new.html.erb
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
…ubliclab#8923)

* added error message partial

* added new line

* fixed failing test

* changed new file

* updated new.html.erb
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
…ubliclab#8923)

* added error message partial

* added new line

* fixed failing test

* changed new file

* updated new.html.erb
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.

Refactor old error_messages usage in features forms
3 participants