Skip to content

Config upload#911

Merged
MasterOdin merged 7 commits intomasterfrom
config_upload
Feb 28, 2017
Merged

Config upload#911
MasterOdin merged 7 commits intomasterfrom
config_upload

Conversation

@bmcutler
Copy link
Member

No description provided.

@bmcutler bmcutler requested a review from MasterOdin February 27, 2017 07:16
}

fwrite($config_build_fp, json_encode($config_build_data), JSON_PRETTY_PRINT);
fclose($config_build_fp);
Copy link
Member

Choose a reason for hiding this comment

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

if (file_put_contents($config_build_file, json_encode($config_build_data, JSON_PRETTY_PRINT)) === false) {
    die("Failed to write file {$config_build_file}");
}

as this'll handle fopen and all that for us.


# ------------------------------------------------------------------------
def buildAll() :
for file in glob.glob("/var/local/submitty/to_be_built/*.json") :
Copy link
Member

Choose a reason for hiding this comment

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

Please don't use file as a variable name as that's a builtin for python. filename perhaps?

@bmcutler
Copy link
Member Author

@MasterOdin The upload config page still needs some work. At the minimum, it should say what version was just uploaded (a copy paste line that can be inserted into the add-or-edit-gradeable page). And it would be nice to have it refresh automatically when the build output finishes (requires reload now). And it would be great to see file names and even file contents for previous uploads.

Do you want to add to this PR, or a later PR?

@MasterOdin
Copy link
Member

I added a list of uploaded directories (without file lists) which will do for now and more features can come later.

@MasterOdin
Copy link
Member

MasterOdin commented Feb 28, 2017

Travis is currently down with the AWS outage so merging this without them for the time being.

@MasterOdin MasterOdin merged commit 26381bb into master Feb 28, 2017
@MasterOdin MasterOdin deleted the config_upload branch February 28, 2017 23:05
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