Skip to content

Conversation

dstrain115
Copy link
Collaborator

  • Fix list bulleting
  • Fix printing URL to use job_id and program_id

- Fix list bulleting
- Fix printing URL to use job_id and program_id
@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Sep 9, 2020
" \"programs{}?mods=quantum_ng2&project={}\".format(\n",
" job.job_resource_name.split('/programs')[1], project_id))\n",
" f\"programs/{job.program_id}/jobs/{job.job_id}\"\n",
" f\"/overview?project={project_id}\")\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should put the URL-construction into an easily discoverable function somewhere. WDYT?

(Out of scope for this PR.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, that's a good idea. I'll add it to my TODOs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Filed #3305.

" print(\"Scheduled. View the job at: https://console.cloud.google.com/quantum/\"\n",
" \"programs{}?mods=quantum_ng2&project={}\".format(\n",
" job.job_resource_name.split('/programs')[1], project_id))\n",
" f\"programs/{job.program_id}/jobs/{job.job_id}\"\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: shouldn't you keep the old indentation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Isn't this basically the same indentation? I just changed it to a f string instead of the format. Or do you think I should indent so the f is under the quotes?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think under the quotes. The number of spaces should stay fixed :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@viathor viathor mentioned this pull request Sep 9, 2020
@dstrain115 dstrain115 merged commit 60b4ad3 into quantumlib:master Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants