Skip to content

Code review changes and tests for course import on site creation - #553

Merged
OmarIthawi merged 1 commit into
appsembler/tahoe/developfrom
omar/maxi/course-import-on-site-creation
Apr 1, 2020
Merged

Code review changes and tests for course import on site creation#553
OmarIthawi merged 1 commit into
appsembler/tahoe/developfrom
omar/maxi/course-import-on-site-creation

Conversation

@OmarIthawi

@OmarIthawi OmarIthawi commented Mar 27, 2020

Copy link
Copy Markdown

Overview

I did an extensive review for #546 and this PR contains my suggestions and the test case I wrote.

List of Changes

  • Fix a bug in source_dirs to have an array of directories. I think Course import on site creation #546 is broken
  • Ditch uuid in favor of NamedTemporaryFile
  • Integration test cases with actual GitHub download from the tahoe-first-course@v0.0.1 release (3 Kilobytes course).
  • A lot of variable renaming and code refactoring

TODO

  • Write a test case.
  • Fix broken tests.

@OmarIthawi
OmarIthawi force-pushed the maxi/course-import-on-site-creation branch from 616e988 to c36f9ab Compare March 27, 2020 10:11
@OmarIthawi
OmarIthawi changed the base branch from maxi/course-import-on-site-creation to appsembler/tahoe/develop March 27, 2020 10:22
@OmarIthawi OmarIthawi changed the title review changes for: Course import on site creation (WIP) review changes for: Course import on site creation Mar 27, 2020
@OmarIthawi
OmarIthawi force-pushed the omar/maxi/course-import-on-site-creation branch 3 times, most recently from f0b8309 to 71cd037 Compare March 30, 2020 08:33
@OmarIthawi OmarIthawi changed the title (WIP) review changes for: Course import on site creation Code review changes and tests for course import on site creation Mar 30, 2020
@OmarIthawi
OmarIthawi requested a review from melvinsoft March 30, 2020 08:33
@OmarIthawi
OmarIthawi force-pushed the omar/maxi/course-import-on-site-creation branch 3 times, most recently from 2b8d86a to 6509bdf Compare March 30, 2020 08:47
@melvinsoft

Copy link
Copy Markdown

@OmarIthawi Thanks for writing this up, we have some problems with the test that are failing, I took a quick look and it's failing with some requirements we added/changes recently, looks like a cache issue. How can you clear cache in TravisCI?

@OmarIthawi
OmarIthawi force-pushed the omar/maxi/course-import-on-site-creation branch from 74f6a00 to 97c9e7f Compare March 31, 2020 07:30
@OmarIthawi

Copy link
Copy Markdown
Author

@melvinsoft I've fixed the tests with a couple of push --force and changing the directory of edxapp_toxenv. See push force to revert the change.

Please take a look and let me know what do you think of the refactoring.

@melvinsoft melvinsoft left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@OmarIthawi Thanks for refactoring the code, it looks much better.

@OmarIthawi
OmarIthawi merged commit 66bb278 into appsembler/tahoe/develop Apr 1, 2020
@OmarIthawi

Copy link
Copy Markdown
Author

Thanks @melvinsoft! I'm going to deploy now.

@OmarIthawi
OmarIthawi deleted the omar/maxi/course-import-on-site-creation branch April 1, 2020 05:59
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.

2 participants