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

#9 - CRUD get all data types #29

Merged
merged 10 commits into from
Sep 18, 2023
Merged

#9 - CRUD get all data types #29

merged 10 commits into from
Sep 18, 2023

Conversation

RadiantBunny633
Copy link
Contributor

@RadiantBunny633 RadiantBunny633 commented Sep 15, 2023

Changes

Added the service function which will return all the data types in the base.

Notes

I had a few issues but I think what I'm submitting here is much better than what I was submitting yesterday. Yesterday, for some reason my vs code was not updating the ncode so I wasn't updating the map correctly. However, once this was figured out my other issue was just submitting. Apologies in advance for creating another pull request rather than committing on the other one. I was having an issue actually getting these new changes to that other ticket. However, the creation of this new ticket allowed me to get my changes to go through so if possible could ticket #28 perhaps be deleted? Ok I also am not sure what on earth those 3200 changes are.
Update: I think I fixed it.

To Do

Any remaining things that need to get done

  • upserting?

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No package-lock.json changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #9

Copy link
Contributor

@Peyton-McKee Peyton-McKee left a comment

Choose a reason for hiding this comment

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

looks great can you remove these .ds_store files for me though

{ id: 2, dataType: 'int' }
];
const prismaMock = require('../prisma/prisma-client');
prismaMock.dataType.findMany.mockResolvedValue(expected);
Copy link
Contributor

Choose a reason for hiding this comment

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

no you dont need to mock these because were using an sqlite db which is included in github so we actually wanna test our prisma calls

Copy link
Contributor

@Peyton-McKee Peyton-McKee left a comment

Choose a reason for hiding this comment

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

w

@Peyton-McKee Peyton-McKee merged commit 4ecd50f into main Sep 18, 2023
4 checks passed
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.

CRUD Operations - Get All DataTypes Endpoint
2 participants