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

Add create_task function #74

Merged
merged 8 commits into from
Nov 29, 2021
Merged

Conversation

orzionpour
Copy link
Collaborator

@orzionpour orzionpour commented Nov 25, 2021

Fixes #69
This PR adds the ability to create new tasks and save them to the DB.

Changes you made

- Add a function "create_task" to add task to DB
This function add the ability to create a new task and save it to DB.
- Add tests for the above function

avraham1992
avraham1992 previously approved these changes Nov 25, 2021
aradz1997
aradz1997 previously approved these changes Nov 25, 2021
tasks/tests/test_create_task.py Outdated Show resolved Hide resolved
tasks/tests/test_create_task.py Outdated Show resolved Hide resolved
tasks/tests/test_create_task.py Outdated Show resolved Hide resolved
@orzionpour orzionpour dismissed stale reviews from aradz1997 and avraham1992 via 6a544b2 November 25, 2021 19:41
Copy link
Collaborator

@AvivLiberman AvivLiberman left a comment

Choose a reason for hiding this comment

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

If you need to use users fixture instead of creating them again try:

  • create conftest.py file and put it in falcon directory
  • move users fixture there

tasks/models.py Show resolved Hide resolved
tasks/models.py Outdated Show resolved Hide resolved
tasks/models.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@aradz1997 aradz1997 left a comment

Choose a reason for hiding this comment

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

or , plz notice the changes of the models bt PR #66 , and update the code

@orzionpour
Copy link
Collaborator Author

I know, I'm on it.

@orzionpour orzionpour changed the title Add create_task function Add create_task function - DO NOT MERGE ! Nov 26, 2021
@orzionpour orzionpour added the dont merge Don't merge this PR label Nov 26, 2021
- Add a function "create_task" to add task to DB
- Add tests for the above function

Co-Authored-By: Kobi Hakimi <kobihk@users.noreply.github.com>
@orzionpour
Copy link
Collaborator Author

Sorry for the force push, had some issues with update from main ..

@orzionpour orzionpour removed the dont merge Don't merge this PR label Nov 26, 2021
@orzionpour orzionpour changed the title Add create_task function - DO NOT MERGE ! Add create_task function Nov 26, 2021
tasks/models.py Outdated Show resolved Hide resolved
tasks/models.py Outdated Show resolved Hide resolved
tasks/models.py Outdated Show resolved Hide resolved
@orzionpour orzionpour added the dont merge Don't merge this PR label Nov 27, 2021
@orzionpour orzionpour removed the dont merge Don't merge this PR label Nov 27, 2021
Asafh7
Asafh7 previously approved these changes Nov 27, 2021
@nunnatsa
Copy link
Contributor

Please change the PR description to be meaningful. For example: "this PR adds the ability to ..." or "this PR fixes a bug where ..." or "this PR changes the way we do ... because ..."

@orzionpour
Copy link
Collaborator Author

Done

@orzionpour orzionpour requested a review from Asafh7 November 27, 2021 20:00
aradz1997
aradz1997 previously approved these changes Nov 27, 2021
@orzionpour orzionpour dismissed stale reviews from aradz1997 and Asafh7 via 10aaaad November 27, 2021 20:25
@orzionpour
Copy link
Collaborator Author

Pulled changes from main and resolved conflicts

tasks/tests/test_create_task.py Outdated Show resolved Hide resolved
Asafh7
Asafh7 previously approved these changes Nov 28, 2021
Change the negative tests of create_task to be one  parameterized test.
@orzionpour
Copy link
Collaborator Author

Resolved everything.
Note that there will be conflicts when merging #74 and #83, so please after merging one of them, wait so I will resolve the conflicts (the conflicts are only because I worked on the same model file)

@orzionpour orzionpour mentioned this pull request Nov 28, 2021
Copy link
Contributor

@kobihk kobihk left a comment

Choose a reason for hiding this comment

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

Great implementation!!!

@natifridman
Copy link
Contributor

@orzionpour Let us know which one you want to merge first. #74 or #83

@orzionpour
Copy link
Collaborator Author

@natifridman doesn’t matter which one, after merging one of them i’ll let you know when the second is ready. Thanks

@natifridman natifridman merged commit a27e44f into redhat-beyond:main Nov 29, 2021
@orzionpour orzionpour deleted the add-create-task branch December 1, 2021 10:04
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.

Add Create Task func + tests
8 participants