Deep link into a created change

42 views
Skip to first unread message

Andrew Allen

unread,
Dec 3, 2020, 4:50:29 PM12/3/20
to repo-discuss
Hey everyone,

I'm interested in adding a link to our documentation site that takes you to edit the page you're currently looking at. Does anyone know if it's possible to deep link into the gerrit "create change" UI with a file open? I don't know if it's possible to do, but ideally I would be able to construct something like


and it would create a stub commit against master on the "project_name" project and open the file "path/to/the/file.md" and put the cursor on line 123.

Is anything like this possible, or am I moving into the world of writing a custom plugin?

Thanks so much!

/** ~Andrew Z Allen */

Nasser Grainawi

unread,
Dec 3, 2020, 5:12:21 PM12/3/20
to Andrew Allen, repo-discuss

On Dec 3, 2020, at 2:50 PM, Andrew Allen <m...@andrewzallen.com> wrote:

Hey everyone,

I'm interested in adding a link to our documentation site that takes you to edit the page you're currently looking at. Does anyone know if it's possible to deep link into the gerrit "create change" UI with a file open? I don't know if it's possible to do, but ideally I would be able to construct something like



I think it would be adding something into https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-input that gives it a file you want to start editing in the change.

and it would create a stub commit against master on the "project_name" project and open the file "path/to/the/file.md" and put the cursor on line 123.

Is anything like this possible, or am I moving into the world of writing a custom plugin?

I would strongly support this as a core feature (and I suspect many others would too). It looks like it has already been requested in https://crbug.com/gerrit/11528

Nasser


Thanks so much!

/** ~Andrew Z Allen */

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAAVj6hyp6cOB4f5__zd-YQai19PjQN-wX-0XWECNkVtUg2YMDA%40mail.gmail.com.

Andrew Allen

unread,
Jan 24, 2022, 2:07:03 AM1/24/22
to Nasser Grainawi, repo-discuss
On Thu, Dec 3, 2020 at 3:12 PM Nasser Grainawi <nas...@codeaurora.org> wrote:


On Dec 3, 2020, at 2:50 PM, Andrew Allen <m...@andrewzallen.com> wrote:

Hey everyone,

I'm interested in adding a link to our documentation site that takes you to edit the page you're currently looking at. Does anyone know if it's possible to deep link into the gerrit "create change" UI with a file open? I don't know if it's possible to do, but ideally I would be able to construct something like



I think it would be adding something into https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-input that gives it a file you want to start editing in the change.

and it would create a stub commit against master on the "project_name" project and open the file "path/to/the/file.md" and put the cursor on line 123.

Is anything like this possible, or am I moving into the world of writing a custom plugin?

I would strongly support this as a core feature (and I suspect many others would too). It looks like it has already been requested in https://crbug.com/gerrit/11528

In spite of it taking me... *ahem*... a small amount of time to get around to this... I have a straw-man CL that I think we can start a conversation about here

Reply all
Reply to author
Forward
0 new messages