-
Notifications
You must be signed in to change notification settings - Fork 2
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
✨(models/api) add models and API endpoints for contract #358
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
sampaccoud
force-pushed
the
add-contract
branch
3 times, most recently
from
July 27, 2023 06:41
9cf4677
to
eb87439
Compare
jbpenrath
reviewed
Jul 27, 2023
jonathanreveille
force-pushed
the
add-contract
branch
8 times, most recently
from
August 14, 2023 14:07
c8db4ee
to
462344c
Compare
jonathanreveille
force-pushed
the
add-contract
branch
from
August 16, 2023 12:39
462344c
to
b195af2
Compare
jbpenrath
reviewed
Aug 16, 2023
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.html
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
jonathanreveille
force-pushed
the
add-contract
branch
4 times, most recently
from
August 21, 2023 14:58
c514337
to
b2d976a
Compare
jbpenrath
reviewed
Aug 22, 2023
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.html
Outdated
Show resolved
Hide resolved
jonathanreveille
force-pushed
the
add-contract
branch
4 times, most recently
from
August 28, 2023 09:30
fe4c314
to
a25b60e
Compare
sampaccoud
commented
Sep 20, 2023
jonathanreveille
force-pushed
the
add-contract
branch
from
September 21, 2023 16:42
e9ecc48
to
413df3c
Compare
jonathanreveille
force-pushed
the
add-contract
branch
2 times, most recently
from
September 21, 2023 16:51
e0a800a
to
19b85fd
Compare
sampaccoud
force-pushed
the
add-contract
branch
from
September 25, 2023 12:19
19b85fd
to
c4dae82
Compare
src/backend/joanie/core/templates/issuers/contract_definition.html
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
lunika
reviewed
Sep 25, 2023
src/backend/joanie/tests/core/test_api_admin_contract_definitions.py
Outdated
Show resolved
Hide resolved
sampaccoud
force-pushed
the
add-contract
branch
from
September 25, 2023 15:52
5254fa4
to
ff4d60e
Compare
lunika
approved these changes
Sep 26, 2023
jbpenrath
reviewed
Sep 26, 2023
body = factory.Faker("paragraphs", nb=3) | ||
description = factory.Faker("paragraph", nb_sentences=5) | ||
language = factory.fuzzy.FuzzyChoice([lang[0] for lang in settings.LANGUAGES]) | ||
name = factory.fuzzy.FuzzyChoice([name[0] for name in enums.CONTRACT_NAME_CHOICES]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder : I should do the same for certificate_definition
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.css
Outdated
Show resolved
Hide resolved
src/backend/joanie/core/templates/issuers/contract_definition.html
Outdated
Show resolved
Hide resolved
sampaccoud
force-pushed
the
add-contract
branch
3 times, most recently
from
September 26, 2023 09:55
25e304b
to
a6efc6f
Compare
jbpenrath
approved these changes
Sep 26, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
We have recently introduced a "Params" field that holds a "ref_date". This date is computed when the Python code first loads. When the full test suite is run, the gap between the ref_date and "now" computed in tests can be significant and lead to random test failures because a course run created with a state ONGOING_OPEN can in fact be closed...
This test required that the number of seats on the order group be at least 3. It was randomly failing when the random number of seats was chosen to be less than 3...
sampaccoud
force-pushed
the
add-contract
branch
from
September 26, 2023 12:35
a6efc6f
to
1ba815a
Compare
We want to be able to sign learning conventions with students. On the model of what was done for certificates, we add a "ContractDefinition" model for universities to define the content of the contract they want students to sign and a "Contract" model to record actual contracts for each student on an order.
sampaccoud
force-pushed
the
add-contract
branch
from
September 26, 2023 12:51
1ba815a
to
7d42bf7
Compare
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.
Purpose
We want a student and an organization to be able to sign a contract on courses that are subject to it.
Proposal