Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds multiple new fields to posts + misc. #27

Closed
wants to merge 12 commits into from
Closed

Adds multiple new fields to posts + misc. #27

wants to merge 12 commits into from

Conversation

mattrltrent
Copy link
Member

Fields added to Post type

  • reply_context (optional): Specifies if the post is "replying" to another post. Think of it as a Quoted Tweet (if you know Twitter).
  • school_id: The unique ID (ex: UVIC) of the school the post is associated with.
  • text field split up into header_text and body_text.
  • genre: The genre of the post (ex: General, Relationships).
  • year_of_study (optional): The year of study of the poster (ex: One, PhD, Graduate).
  • faculty (optional): The faculty of the poster (ex: Engineering, Arts).
  • associated_with_user: Determines if the user wants this post to be easily findable from their private profile, or if they want it completely disassociated with them.

Changes to creating-a-post route

  • It now queries to check if the school_id field the user passes up is inside the schools MongoDB collection, verifying it's a valid school, confirming a post can be created using it.

Closes #24

@mattrltrent mattrltrent added the feature Something to be added or improved upon. label Feb 14, 2023
@mattrltrent mattrltrent requested a review from minitech February 14, 2023 21:53
@mattrltrent mattrltrent self-assigned this Feb 14, 2023
@mattrltrent mattrltrent added the invalid This doesn't seem right label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Something to be added or improved upon. invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finish creating post endpoint.
1 participant