Skip to content

Create Post in List modal#334

Merged
LunarFang416 merged 10 commits intodevelopfrom
issue-322
Aug 28, 2022
Merged

Create Post in List modal#334
LunarFang416 merged 10 commits intodevelopfrom
issue-322

Conversation

@LunarFang416
Copy link
Contributor

Details

  • Users can now create posts in the list modal. The posts will not be sent to the canvas, and will only remain in the list modal. These posts can be downloaded to the canvas later on
  • Downloading posts hasn't been implemented in the develop branch, but I found this issue a while ago and addressed it in the Delete bucket PR Delete Buckets #305. So you wont be able to test downloading the posts from the list modal in this branch, but when Delete Buckets #305 is merged to develop, you will be able to download posts from the list modal and it will work as we want it to

Closes #322

@LunarFang416 LunarFang416 requested a review from a team July 13, 2022 18:15
@LunarFang416 LunarFang416 added the Ready for review 👀 PR is complete and ready to be reviewed label Jul 13, 2022
@JoelWiebe JoelWiebe requested a review from a team July 15, 2022 13:13
Copy link
Contributor

@JoelWiebe JoelWiebe left a comment

Choose a reason for hiding this comment

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

Thanks for adding this @LunarFang416

Tested:

  • Create post from list view containing title, message, and tags

Suggestions/ideas:

  1. 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?

@LunarFang416
Copy link
Contributor Author

@JoelWiebe I'll look into the log errors.
The PostType is basically the types of posts you can create: BOARD, BUCKETS, or LIST (new). It helps organize which posts to view in the canvas and other modals.

@LunarFang416
Copy link
Contributor Author

@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.

@JoelWiebe
Copy link
Contributor

@LunarFang416 Great work!

The following work when testing:

  • POST_CREATE
  • POST_DELETE
  • POST_TAG_ADD
  • POST_UPVOTE_ADD
  • POST_UPVOTE_REMOVE
  • POST_READ

However, I didn't see logs for:

  • POST_TAG_REMOVE
  • POST_COMMENT_ADD
  • POST_COMMENT_REMOVE (is this event even implemented -- it may have been forgotten when we added the delete comment feature as this doesn't work from the canvas either -- maybe we can add this for the canvas, buckets, and list view?)

@LunarFang416
Copy link
Contributor Author

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.

@JoelWiebe
Copy link
Contributor

JoelWiebe commented Aug 2, 2022

@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?

@Ammar-T
Copy link
Contributor

Ammar-T commented Aug 2, 2022

@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.

@JoelWiebe
Copy link
Contributor

@LunarFang416 I noticed a small glitch:

  • When adding a post to the list view only, it does not show up immediately in the list view
  • When I tagged a post in the list view, the new post that wasn't showing up did show up, but all the posts in the list view were also duplicated in the list view modal

Always so tricky, haha

@JoelWiebe
Copy link
Contributor

@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.

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!

@Ammar-T
Copy link
Contributor

Ammar-T commented Aug 3, 2022

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.

@LunarFang416
Copy link
Contributor Author

@Ammar-T @JoelWiebe just made a few changes to fix the issues. Hopefully they don't occur again.

@JoelWiebe JoelWiebe self-requested a review August 26, 2022 22:22
@LunarFang416 LunarFang416 merged commit 29e87ae into develop Aug 28, 2022
@LunarFang416 LunarFang416 deleted the issue-322 branch August 28, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review 👀 PR is complete and ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create post in List View

3 participants