Closed joedinsmoor closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 84.40%. Comparing base (
8457310
) to head (c10c4b6
). Report is 5 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Neat. I will review. Also interested in chatting with you about what I’ve learned about Apache SAM.
On Fri, Jul 12, 2024 at 11:05 AM Joe Dinsmoor @.***> wrote:
As of now, a working framework is set up to test the list_movies() function within PlantTracer. If everybody is satisfied with my approach, I'll continue adding tests for the remaining functions within PlantTracer. I can either segment to individual files for each function, or create a massive test file, whichever is preferred.
You can view, comment on, or merge this pull request online at:
https://github.com/Plant-Tracer/webapp/pull/457 Commit Summary
- d24165b https://github.com/Plant-Tracer/webapp/pull/457/commits/d24165b5bb03132c723c4169983f671b866b5eeb Initial test commits.
- 1bfdfd0 https://github.com/Plant-Tracer/webapp/pull/457/commits/1bfdfd068bf1e669b3b1e16a06805d2e63475465 Merge branch 'main' into JSTest
- 678b531 https://github.com/Plant-Tracer/webapp/pull/457/commits/678b531931ed4eab7d1053d95eb8ac7f943a8788 debugging test framework, adding dev environment documentation
- df33b71 https://github.com/Plant-Tracer/webapp/pull/457/commits/df33b71382411bbf0ce9bba36e81a58d0cfcfdd3 Merge branch 'main' into JSTest
- 6355af7 https://github.com/Plant-Tracer/webapp/pull/457/commits/6355af75da84e54cc2e232676ea680fef31c726a Jest test framework should function properly
- e7c6c4d https://github.com/Plant-Tracer/webapp/pull/457/commits/e7c6c4dff8c8f6c6c4c60c794be424ebd713d007 Fix makefile issue preventing JSCoverage from running
- 1fd5344 https://github.com/Plant-Tracer/webapp/pull/457/commits/1fd53441a777351283be1c8744f6f5ba1f94ffcc Added command to actually run Jest tests
File Changes
(6 files https://github.com/Plant-Tracer/webapp/pull/457/files)
- M Makefile https://github.com/Plant-Tracer/webapp/pull/457/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52 (6)
- A docs/setting_up_dev_env.rst https://github.com/Plant-Tracer/webapp/pull/457/files#diff-1b23406e1f879a5b1e1801329e2b9d17d81474316e849f8113bae431d8fa5bd4 (18)
- A jstests/list_movies.test.js https://github.com/Plant-Tracer/webapp/pull/457/files#diff-48a8df520653c34a7077f503fdc96ef7621aa77d9855a62f2004e58929339f1c (174)
- M package-lock.json https://github.com/Plant-Tracer/webapp/pull/457/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519 (565)
- M package.json https://github.com/Plant-Tracer/webapp/pull/457/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519 (13)
- M static/planttracer.js https://github.com/Plant-Tracer/webapp/pull/457/files#diff-c16a23de239b57c892e9ad92d0761806c9cc4181ad1f6c44ab708ee2f47ba34e (14)
Patch Links:
- https://github.com/Plant-Tracer/webapp/pull/457.patch
- https://github.com/Plant-Tracer/webapp/pull/457.diff
— Reply to this email directly, view it on GitHub https://github.com/Plant-Tracer/webapp/pull/457, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMFHLGNDWZOD7R7NDBABNDZL7WB7AVCNFSM6AAAAABKZDB3YSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDKOBRHE3TONY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hmm. I had no idea @joedinsmoor was also working on cleaning up docs and I already made and merged very similar changes via PR #470 a couple weeks ago
Just a note that attempting to merge the files in this PR is going to create many merge conflicts in docs.
Also be aware that we're in the process of making changes to the List Movies page in demo mode PR # 522 / Issue #521, so that may affect the current content of this PR, not sure.
(Though I'm quite excited about the JS testing. The reason I was even looking at this PR was that I was thinking about writing some tests maybe for #521 and it occurred to me that maybe this pending Jest-based testing might be close to ready.)
So, what's next for this PR? Also, this really wasn't on my radar as WIP for our weekly dev meetings, so that's something to fix. I'll add this, as it's important.
I'll leave out the documentation changes I made earlier in this PR and defer to you. As far as the rest of it, I'm slowly wrapping up test writing for the remainder of the PlantTracer.js module. It's been slow due to other things on my plate. I'll make sure to keep you and @simsong in the loop.
Thanks.
I'll leave out the documentation changes I made earlier in this PR and defer to you.
No deference necessary. Coordination, though, that we could use. Probably my bad for not paying attention to this since June.
The doc changes we made to make things more RST-ish and the install/setup docs probably are probably largely duplicative (I haven't scrutinized them, but just my impression from a quick once over), but the substance changes to the movie player docs here, for example, are additive and useful so why throw them away?
I was mostly just giving you a heads-up that there would be a bunch of merge conflicts.
Hi, so three tests are good and ready to go into production. I still need clarity on usage limits for the upload movie function before that can be completed. If it is wanted, I can open a separate issue and PR for the remaining test so that the completed ones can be used.
I still need clarity on usage limits for the upload movie function before that can be completed.
Hmm, yeah, you mentioned that somewhere before. Sorry, I lost track of that question.
Not to be didactic, but procedurally it would have been nice to have this question in an issue assigned to the person you think is best positioned to resolve it.
If it is wanted, I can open a separate issue and PR for the remaining test so that the completed ones can be used.
Yes, please separate it. You can include your upload usage limit query in the Issue and then assign it to someone, using the question or needs data label.
In the meantime, I'm dodging the substantive question and deflecting it with procedure mostly because I don't know the answer. Simson can weigh in, and if he doesn't know, I will do my best to make something up. Simson I think has a very direct interest in the question since it's his AWS account we're using!
-Steve
On Thu, Oct 10, 2024 at 1:11 PM Joe Dinsmoor @.***> wrote:
Hi, so three tests are good and ready to go into production. I still need clarity on usage limits for the upload movie function before that can be completed. If it is wanted, I can open a separate issue and PR for the remaining test so that the completed ones can be used.
— Reply to this email directly, view it on GitHub https://github.com/Plant-Tracer/webapp/pull/457#issuecomment-2405643639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFQOBZKEXXEXWDG7HMSU33Z22YLZAVCNFSM6AAAAABKZDB3YSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGY2DGNRTHE . You are receiving this because you commented.Message ID: @.***>
I still need clarity on usage limits for the upload movie function before that can be completed. Hmm, yeah, you mentioned that somewhere before. Sorry, I lost track of that question. Not to be didactic, but procedurally it would have been nice to have this question in an issue assigned to the person you think is best positioned to resolve it. If it is wanted, I can open a separate issue and PR for the remaining test so that the completed ones can be used. Yes, please separate it. You can include your upload usage limit query in the Issue and then assign it to someone, using the question or needs data label. In the meantime, I'm dodging the substantive question and deflecting it with procedure mostly because I don't know the answer. Simson can weigh in, and if he doesn't know, I will do my best to make something up. Simson I think has a very direct interest in the question since it's his AWS account we're using! … -Steve On Thu, Oct 10, 2024 at 1:11 PM Joe Dinsmoor @.> wrote: Hi, so three tests are good and ready to go into production. I still need clarity on usage limits for the upload movie function before that can be completed. If it is wanted, I can open a separate issue and PR for the remaining test so that the completed ones can be used. — Reply to this email directly, view it on GitHub <#457 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFQOBZKEXXEXWDG7HMSU33Z22YLZAVCNFSM6AAAAABKZDB3YSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGY2DGNRTHE . You are receiving this because you commented.Message ID: @.>
Understood, I'll open the new issue is open #554
Also, happy to help if the path forward is not clear.
Closing this PR and moving to #555 to avoid any merge errors I may have incidentally created
Another simson typo.
On Oct 10, 2024, at 1:34 PM, Steve Barber @.***> wrote:
@sbarber2 requested changes on this pull request.
Looks like this PR wasn't correctly merged back from main. Please review and fix.
In Makefile https://github.com/Plant-Tracer/webapp/pull/457#discussion_r1795847901:
@@ -71,12 +73,12 @@ flake:
Dynamic Analysis
pytest-db: $(REQ)
- if [ -z "$${PLANTTRACER_CREDENTIALS}" ]; then echo PLANTTRACER_CREDENTIALS is not set; exit 1; fi
- if [ -z "$${PLANTTRACER_CREDENTIALS}" ]; then echo PLANTTRACER_CREDETIALS is not set; exit 1; fi Again, you are backing out changes made in main with this PR. OK, I'm going to stop reviewing now and send this back to you.
— Reply to this email directly, view it on GitHub https://github.com/Plant-Tracer/webapp/pull/457#pullrequestreview-2361012195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMFHLCQU5BDI6OFUCMELSLZ223CTAVCNFSM6AAAAABKZDB3YSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNRRGAYTEMJZGU. You are receiving this because you were mentioned.
😀
As of now, a working framework is set up to test the list_movies() function within PlantTracer. If everybody is satisfied with my approach, I'll continue adding tests for the remaining functions within PlantTracer. I can either segment to individual files for each function, or create a massive test file, whichever is preferred.