Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Add script for copying prod run #242

Merged
merged 7 commits into from
Nov 16, 2017

Conversation

lukebjerring
Copy link
Collaborator

Note that this should not be merged until #241 is resolved (as it includes a local upload-token setup hack to get this to work, for completeness).

Copy link
Contributor

@rwaldron rwaldron left a comment

Choose a reason for hiding this comment

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

I don't think the indentation thing is a blocker, but I just figured I'd call it out so you could take a peek: https://github.com/lukebjerring/wptdashboard/blob/56816891b33d1bab95a8928495e7ec4f550bf0b7/test_run_handler.go#L39-L56


// Fetch pre-uploaded Token entity.
suppliedSecret := r.URL.Query().Get("secret")
var queryParams url.Values
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Strange indentation here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed - I'm not sure which editor is doing that, I bounce between pycharm/gogland/sublime/atom

@lukebjerring
Copy link
Collaborator Author

Reverted the secret-adding part, as this is now covered by a python script in #248 which is safe.

@@ -67,16 +74,19 @@ func handlePost(w http.ResponseWriter, r *http.Request) {
}
testRun.CreatedAt = time.Now()

fmt.Fprintf(w, "got... %v", testRun)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note that this output is (was) a bit debuggy. The output is now just the JSON blob as stored in the DB, which is a pretty standard behaviour in a REST API.

lukebjerring added a commit to lukebjerring/wptdashboard that referenced this pull request Nov 15, 2017
@lukebjerring lukebjerring merged commit 2bffacc into web-platform-tests:master Nov 16, 2017
@lukebjerring lukebjerring deleted the prod-run-copier branch November 16, 2017 13:06
lukebjerring added a commit that referenced this pull request Nov 17, 2017
* Migrate populate-dev-data to a Python script.

* Add script, Use CamelCase property names

* Fix capitalization

* Add todo for reusing #242 code

* Re-use add_production_run from populate_dev_data

* Changes as per review

* Include port-forwarding in docker

* Remove whitespace
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.

3 participants