-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Issue # 17] Job Posting CRUD API for Backend Service #19
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…unnecessary comment and console.log codes
…ng colletion in route.js
…ute codes to it. Also, updated the site names specifically.
Updated the following:
|
…and added missing import NextResponse in siteRequestUtils
Updated the following:
|
AlexLLKong
approved these changes
May 10, 2024
AlexLLKong
added a commit
that referenced
this pull request
May 16, 2024
* Added mongoDB connection configuration * Added a post request for job posting * Added get request to search job postings by email in route.js * Added delete request that handles deleting a job posting and removed unnecessary comment and console.log codes * Added Patch request which updates any desired fields in the job posting colletion in route.js * Removed unused import and removed unnecessary space * Added get requests for site 1, 2, 3, and 4 * added demo code for admin panel UI * added jsconfig and package.json * updated website title * Delete template code * Added pagination feature to the get request in site1,2,3, and 4 * relocate admin panel UI files * Created siteRequestUtils.js and moved the repeated codes in sites' route codes to it. Also, updated the site names specifically. * Updated the database connection to handle it in singleton way * Add Stripe Checkout #21 * intall mongoose and dotenv * connected to DB and populated cards dynamically * Removed database connection closing code to fix the connection error and added missing import NextResponse in siteRequestUtils * separated icons UI * added CSS for Card Title * Removed search box * Deleted unnecessary mongoDB connect * Added job ID * added functionality for trash button * renamed to jobPostingId * bug fixed: api fetch for delete * Removed unnecessary error handling and fixed typo * Added get request by Id for job posting * Apply formatting changes * Removed card from UI upon deleting * Adding ESlint to GitHub actions to ensure code validity. It triggers on push and pull request (#32) * Adding eslint to github actions (#31) * Update main.yml * adding eslint to the actions (#31) * [Issue # 17] Job Posting CRUD API for Backend Service (#19) * Added mongoDB connection configuration * Added a post request for job posting * Added get request to search job postings by email in route.js * Added delete request that handles deleting a job posting and removed unnecessary comment and console.log codes * Added Patch request which updates any desired fields in the job posting colletion in route.js * Removed unused import and removed unnecessary space * Added get requests for site 1, 2, 3, and 4 * Added pagination feature to the get request in site1,2,3, and 4 * Created siteRequestUtils.js and moved the repeated codes in sites' route codes to it. Also, updated the site names specifically. * Updated the database connection to handle it in singleton way * Removed database connection closing code to fix the connection error and added missing import NextResponse in siteRequestUtils * Removed unnecessary error handling and fixed typo * Added get request by Id for job posting * Apply formatting changes --------- Co-authored-by: ama-cantabile <[email protected]> * Added a function to get total number of job postings in siteRequestUtils.js * Added get request that returns the total number of job postings for the four front-ends * Added function that returns sorted job postings by date * Added Get request that returns sorted job posting by date for disabled front-end * Added Get request that returns sorted job posting by date for indigenous front-end * Added Get request that returns sorted job posting by date for newcomers front-end * Added Get request that returns sorted job posting by date for students front-end * Added GetByEmail request that returns sorted job posting by date for admin paner front-end * Modified sorting function that dynamically handles the sorting field and added a validation to check if the requested field exists or not in the collection * Changed the folder directory name from sort-by-date to sort and modified the request to handle the sorting feature dynamically * Changed the folder directory name from sort-by-date to sort and modified the request to handle the sorting feature dynamically for job posting front-ends * Changed the folder directory name from sort-by-date to sort and modified the request to handle the sorting feature dynamically for admin panel * Changed the query parameter key name to sort_by for the consistency * Changed the function name to more general * Update list of dependencies * Remove default styling * Add UserProvider component * Add dynamic API route handler * Add skeleton landing page with login/logout functionality * added tailwind forms dependency * added save job posting func * Added get and get total posts request for a new asylum-refugees front-end (#37) * Redirect to admin-panel home * Add user to admin-panel * Fetch user from auth0 api in home page * added add posting form * integrate add post api endpoint * added add pot form in Home * updated jobPageId req * added styling for close button * Apply formatting changes * Added sorting api for asylum-refugees front-end * display postings by date created * sort by date created * updated UI when new posting is added * return postings IDs upon creation * Refactored sorting so that the sorting is handeled at the same end point instead of having separate individual end points * Added Id in the message to handle specifically in Admin panel side * adjusted text area dynamically * updated dependency * Removed unused sort directoy in job posting * Turn off strict mode * Update stripe version * Update stripe version * Fix posting retrieval and rendering * Added sorting in route.js for admin panel * Update api url * added dependency --------- Co-authored-by: amamc <[email protected]> Co-authored-by: mai-vu <[email protected]> Co-authored-by: Alex Kong <[email protected]> Co-authored-by: ama-cantabile <[email protected]> Co-authored-by: Cassidy Boilley <[email protected]> Co-authored-by: Amadeus Min <[email protected]> Co-authored-by: SOO <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added the following: