uwblueprint / supportive-housing

🏘️ Supportive Housing Of Waterloo location management platform
6 stars 0 forks source link

Connecting tags when creating, filtering and editing log record #203

Closed braydonwang closed 11 months ago

braydonwang commented 11 months ago

Notion task link

Task

Implementation description

Steps to test

  1. At the moment, we don't have any way to create a tag from the frontend or backend, so you'll need to manually insert it into the db
    insert into tags (tag_id, name, status) values (1, 'Test Tag', 'Active');
  2. On the frontend, when creating a log record, click the "Tags" input box and check that the dropdown displays all tags that are currently in the tags table in the db
  3. Add a couple of log records with: a) No tags, b) One tag, c) Multiple tags (make sure that you get a success response on the frontend and check that the log_record_tag table has also been correctly updated)
  4. Try editing log records and updating their tags section: a) Remove all tags, b) Add new tags c) Don't change tags (similar to create, make sure this gives successful response and updates log_record_tag table accordingly)
  5. Filter by a single tag or multiple tags and ensure that all log records with ALL of the specified tags are being displayed (also check that the count of log records is correct)

What should reviewers focus on?

Checklist

github-actions[bot] commented 11 months ago

Visit the preview URL for this PR (updated for commit f303fbf):

https://blueprintsupportivehousing--pr203-braydon-connect-tags-jjn8mvr2.web.app

(expires Thu, 07 Dec 2023 02:36:10 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f6bcdba7452bf82a6ec1a299c37d1bdff7870d09