Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Updated Course ID Regex and CSV filename #34

Merged
merged 2 commits into from
Oct 15, 2014
Merged

Updated Course ID Regex and CSV filename #34

merged 2 commits into from
Oct 15, 2014

Conversation

clintonb
Copy link
Contributor

@clintonb clintonb commented Oct 7, 2014

This regex is nearly identical to the one used by LMS. The only difference is the internal capture groups have been replaced with character sets to avoid issues with the Swagger UI attempting to parse the internal capture groups and pass them along as arguments.

@rocha @dsjen @mulby @brianhw

This regex is nearly identical to the one used by LMS. The only difference is the internal capture groups have been replaced with character sets to avoid issues with the Swagger UI attempting to parse the internal capture groups and pass them along as arguments.
self.generate_data(course_id)
filename = u'{0}--{1}.csv'.format(u'edX-DemoX-Demo_Course', self.csv_filename_slug)
self.assertCSVIsValid(course_id, filename)

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a test that uses a valid unicode character in the new-format course-id? It would be good to know sooner rather than later that we handle this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brianhw I will test Unicode support in a later PR.

@brianhw
Copy link
Contributor

brianhw commented Oct 10, 2014

Looks good. Just add a test and 👍

File names are now compatible with opaque keys.
clintonb added a commit that referenced this pull request Oct 15, 2014
Updated Course ID Regex and CSV filename
@clintonb clintonb merged commit 646ad4a into master Oct 15, 2014
@clintonb clintonb deleted the opaque-keys branch October 15, 2014 20:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants