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

NOT YET #22

Merged
merged 5 commits into from
Feb 27, 2024
Merged

NOT YET #22

merged 5 commits into from
Feb 27, 2024

Conversation

adammotts
Copy link
Collaborator

Description

Change below here

[Link to Ticket](insert the link to your ticket inside the parenthesis here)

Please include a summary of the changes and the related issue. Please also include relevant motivation, context, and images! If its a frontend ticket, screenshots are important, if its a backend ticket, please add pictures of relevant postman screenshots or console printouts.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. If they are unit tests, provide the file name the tests are in. If they are not unit tests, describe how you tested the change.

Change below here. If this is a frontend MR, include screenshots

Add here

Checklist

  • I have performed a self-review of my code
  • I have reached out to another developer to review my code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

@adammotts adammotts requested a review from leoRysing February 25, 2024 23:27
@adammotts
Copy link
Collaborator Author

This should be good, but still waiting to add the get all posts from followings once cam's branch is done

@@ -31,6 +31,7 @@ func main() {

routes.SetupUserRoutes(r, db)
routes.SetupETradeRoutes(r, db)
routes.SetupPostRoutes(r, db)
Copy link
Contributor

Choose a reason for hiding this comment

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

going to add a change on Cam's branch to. move all of these to helper fyi

Copy link
Contributor

@leoRysing leoRysing left a comment

Choose a reason for hiding this comment

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

just some initial comments / getting code in pre merge

DROP TABLE IF EXISTS posts;

--Create post type table
CREATE TYPE post_type_enum AS ENUM (
Copy link
Contributor

Choose a reason for hiding this comment

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

For enum can we do Caps / underscore case? IE '1_MONTH_SUM'

Also comment is the stock performance comment right?

post_type post_type_enum NOT NULL,
num_data FLOAT NOT NULL,
ticker_symbol VARCHAR(9),
time_stamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the gorm / sql format for this would be created_at? everything else is good

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just submitted

@adammotts adammotts requested a review from leoRysing February 26, 2024 21:11
@adammotts adammotts merged commit 202601f into main Feb 27, 2024
3 checks passed
@adammotts adammotts deleted the adam-post-table-and-crud branch February 27, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants