-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add lms_user_email and content_tile to Transactions #40
Conversation
124d699
to
00cd171
Compare
@@ -353,6 +363,16 @@ class Meta: | |||
"The globally unique content identifier. Joinable with ContentMetadata.content_key in enterprise-catalog." | |||
) | |||
) | |||
content_title = models.CharField( | |||
max_length=255, |
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.
This may be too short for content titles.
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.
Looks like discovery uses 255 - https://github.com/openedx/course-discovery/blob/master/course_discovery/apps/course_metadata/models.py#L1319
make it bigger here anyway?
openedx_ledger/models.py
Outdated
db_index=True, | ||
help_text=( | ||
"The email of the Open edX LMS user record with which this Transaction is associated." | ||
"The email is captured at the time the Transaction is created may not be up to date." |
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.
nit: missing "and" in "Transaction is created may not"?
openedx_ledger/models.py
Outdated
db_index=True, | ||
help_text=( | ||
"The title of the content associated with this Transaction." | ||
"The title is captured at the time the Transaction is created may not be up to date." |
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.
nit: missing "and"?
@@ -0,0 +1,25 @@ | |||
# Docker in this repo is only supported for running tests locally | |||
# as an alternative to virtualenv natively - johnnagro 2022-02-11 |
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.
nit: 2023-10-24
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.
Thanks for the testing container.
00cd171
to
6d24559
Compare
6d24559
to
6a164fa
Compare
Description:
lms_user_email
andcontent_tile
fields to Transactions.make test-shell
cribbed fromedx-enterprise
In support of: