Conversation
frontend/src/app/components/add-post-modal/add-post.component.ts
Outdated
Show resolved
Hide resolved
frontend/src/app/components/add-post-modal/add-post.component.ts
Outdated
Show resolved
Hide resolved
JoelWiebe
left a comment
There was a problem hiding this comment.
Thanks for adding this @LunarFang416
Tested:
- Create post from list view containing title, message, and tags
Suggestions/ideas:
- Post was successfully created, but I did not see any trace logs for post creation (including changes to title and message) and tags added. Can trace logs be added (or would this be included in work done in another PR for buckets already)?
Questions:
- What is PostType used for?
|
@JoelWiebe I'll look into the log errors. |
|
@JoelWiebe Just made a few tweaks to the code. What i tested:
Please let me know if the logs are working as expected for you as well. |
|
@LunarFang416 Great work! The following work when testing:
However, I didn't see logs for:
|
|
I saw that there was an error in some old code which was causing errors in the Comment and tag removal trace logs. Now I tested POST_TAG_REMOVE, POST_COMMENT_ADD, POST_COMMENT_REMOVE. They work for the canvas, list modal, and bucket modal. Please let me know if it works on your end as well. |
|
@LunarFang416 @Ammar-T What do you think about us setting up a unit test suite for testing the logging of adding, moving, deleting, etc.? I just want to make sure we have everything 100% if we are using this for research analysis and publication. [please disregard my previous version of this message as I add mistaken BUCKET_ADD_POST for POST_CREATE] It would probably be good practice and clear contract for consistent implementation if we could define and automated tests. Is this feasible/sensible to use automated testing for our trace logs given the current implementation? |
|
@JoelWiebe I asked Zarif about setting up a test suite and he was on board to do it. Although, haven't heard from him since so I hope that didn't scare him away haha. If we don't hear back within a week, we can discuss if anyone has interest in getting that started, else I could do it too. |
|
@LunarFang416 I noticed a small glitch:
Always so tricky, haha |
Thanks for asking him about this. If he's not available to work on this I'll do a really thorough manual check of everything before data collection begins. I've got other plans if you're looking for more fun features to work on! |
@JoelWiebe Sure, I can take on something new, although there's still a couple things to be addressed in this #307 PR. (I left some questions, you may have missed them). I think it'd be better to get this out of the way first, or I could work on both things concurrently - upto you. |
|
@Ammar-T @JoelWiebe just made a few changes to fix the issues. Hopefully they don't occur again. |
Details
Closes #322