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

Copied fields from offers to cooperations #949

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

PavloDolia
Copy link
Contributor

@PavloDolia PavloDolia commented Nov 7, 2024

Copied subject, category, description, languages and proficiencyLevel from offers and added them to cooperations so that changes in offers don't affect cooperation data.

The responses from getCooperationById and getCooperations have been changed: category and subject were added, but they were removed from response.offer. The response also contains title, price and languages. The field proficiencyLevel is an array of strings in the response .

The data for createCooperation has been changed: subject, category, description and languages are required to create a cooperation.

Important information:
After merging this PR, change mongodb.url in the migrate-mongo-config.js file and paste the remote database url, run the command npx migrate-mongo up. After that, check that fields subject, category, description, languages and proficiencyLevel have been copied from offers to cooperations in the remote database. Change mongodb.url to the local database url.

@PavloDolia PavloDolia linked an issue Nov 7, 2024 that may be closed by this pull request
Copy link

sonarqubecloud bot commented Nov 9, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(SP: 3) Add fields to each cooperation
4 participants