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 |
Tlazypanda
left a comment
There was a problem hiding this comment.
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 testPlease be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software
Thanks!