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

Create cache #49

Merged
merged 3 commits into from
Dec 17, 2017
Merged

Create cache #49

merged 3 commits into from
Dec 17, 2017

Conversation

jayvdb
Copy link
Member

@jayvdb jayvdb commented Dec 14, 2017

Most of the fix for #3

input_dir = options.get('input_dir')
output_dir = options.get('output_dir')

yaml=YAML()
Copy link
Collaborator

Choose a reason for hiding this comment

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

The code does not comply to PEP8.

Origin: PEP8Bear, Section: all.autopep8.

The issue can be fixed by applying the following patch:

--- a/tmp/tmp7z8hoon4/gci/management/commands/cleanse_gci_task_data.py
+++ b/tmp/tmp7z8hoon4/gci/management/commands/cleanse_gci_task_data.py
@@ -25,7 +25,7 @@
         input_dir = options.get('input_dir')
         output_dir = options.get('output_dir')
 
-        yaml=YAML()
+        yaml = YAML()
 
         with open(os.path.join(input_dir, 'tasks.yaml'), 'r') as f:
             tasks = yaml.load(f)

@gitmate-bot
Copy link
Collaborator

Comment on d236d19, file gci/management/commands/fetch_gci_task_data.py, line 34.

The code does not comply to PEP8.

Origin: PEP8Bear, Section: all.autopep8.

The issue can be fixed by applying the following patch:

--- a/tmp/tmp7z8hoon4/gci/management/commands/fetch_gci_task_data.py
+++ b/tmp/tmp7z8hoon4/gci/management/commands/fetch_gci_task_data.py
@@ -31,7 +31,7 @@
         tasks = OrderedDict(sorted(tasks.items(), key=lambda t: t[0]))
         instances = OrderedDict(sorted(instances.items(), key=lambda t: t[0]))
 
-        yaml=YAML()
+        yaml = YAML()
 
         with open(os.path.join(output_dir, 'tasks.yaml'), 'w') as f:
             yaml.dump(tasks, f)

input_dir = options.get('input_dir')
output_dir = options.get('output_dir')

yaml=YAML()
Copy link
Collaborator

Choose a reason for hiding this comment

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

E225 missing whitespace around operator

Origin: PycodestyleBear (E225), Section: all.autopep8.

@gitmate-bot
Copy link
Collaborator

Comment on d236d19, file gci/management/commands/fetch_gci_task_data.py, line 34.

E225 missing whitespace around operator

Origin: PycodestyleBear (E225), Section: all.autopep8.

@jayvdb jayvdb force-pushed the create_cache branch 3 times, most recently from c06915d to 7501c4f Compare December 17, 2017 04:28
@gitmate-bot gitmate-bot added size/M and removed size/S labels Dec 17, 2017
@coala coala deleted a comment from gitmate-bot Dec 17, 2017
Separates the fetch operation from the load operation,
allowing the build on forks to use a cached dataset.

Related to coala#3
Before the Google Code-in data can be stored in the repository,
the data of students who are just starting needs to be removed,
the status types need to be simplified to reduce side channels,
the unpublished tasks need to be removed, and task mentor list
needs to be removed.

Related to coala#3
@jayvdb jayvdb force-pushed the create_cache branch 5 times, most recently from 17a2301 to 731aa97 Compare December 17, 2017 05:14
The cleansed data can be fetched from the production
website if the origin remote is set to be production
repository, as it is on pull requests for Travis CI.
This does not yet allow branch builds on forks,
as their origin will not be the production
repository.

Related to coala#3
@yukiisbored
Copy link
Member

ack 9f1d548

@coala coala deleted a comment from gitmate-bot Dec 17, 2017
@yukiisbored
Copy link
Member

ack 940cce5

@yukiisbored
Copy link
Member

ack 731aa97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants