-
Notifications
You must be signed in to change notification settings - Fork 159
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
Copy the correct link from the contribution page and insert it on the Recent Spectra Section for the contributor's name that currently has a broken link #810
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening this pull request! This space is protected by our Code of Conduct - and we're here to help. |
This looks great. I assume you tested it manually but do you see any opportunity for a test? If not, shall we merge this? Thanks!!! |
Sure Jeff, I can definitely try to write a test for this. Thanks |
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.
Hey @Georjane for writing test you can checkout the system test in spectral-workbench and plots2 repo for reference.
https://github.com/publiclab/spectral-workbench/blob/main/test/system/upload_test.rb
https://github.com/publiclab/plots2/blob/main/test/system/dashboard_test.rb
The idea would be to navigate to the recent spectral page link and then find the element on this page, click on it and check for redirect
Thanks very much @Tlazypanda This is very helpful |
Hey @Georjane can you please clear the merge conflicts through the command line so the tests can be run and then we can debug this? Also sharing this link for reference on how to remove merge conflicts through the command line if needed - https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-using-the-command-line |
Hi @jywarren @Tlazypanda @TildaDares 👋🏽 working code
code not working
|
@Georjane Since the route for You can also use route helpers with routes like spectral-workbench/config/routes.rb Line 29 in 7291df7
by using as https://guides.rubyonrails.org/routing.html#naming-routes
I hope that helps. |
woow this is very helpful @TildaDares Thank you very much. |
@TildaDares I tried creating a fto for this issue, please can you check it out here, #869 |
Oh cool - so does that mean after #869 is solved, we should be able to rebase this and it should work? Thanks!! |
Fixes #(update with issue number)
Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!
rake test
Please be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software
Thanks!