-
Notifications
You must be signed in to change notification settings - Fork 24
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
Perform a test through the URL directly #334
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
I also want to come back to comment in the issue (#200 (comment)): "This is a good idea. The first step is the design and specification of the URL schema. It should be documented as an API to make sure that we do not change anything without an explicit decision." |
I don't think it is. Since the language is only used to display the results, it does not impact how a test is run.
This PR proposes a simple design for the URL schema that can be easily extended. Is this good enough to document this feature? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Could you point to this request? I can't find it.
Nope. It's been here since the beginning. Maybe there was an idea to make it possible to easily access a test history at that time already. Maybe something else. Who knows... |
New route "/check" Redirect "/domain_check" to "/check"
Redirect to "/result/<test-id>"
I've rebased and applied the suggestions from #335. |
I will try to find it. It was probably in a mail directly to me.
OK. Thanks. It then seems like https://github.com/zonemaster/zonemaster-gui/blob/master/src/app/app.module.ts#L54 could be removed without any side effects. And I think it should. |
Do you think I should merge now or should we wait for more reviewers? |
A new default path is used /check (instead of previous /domain_check)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine. Tested, and all works as it should. I have only tested with a default base path, not with a custom path.
#335 should be merged first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice feature (also thank you for removing the underscore in the url), I still have a couple of comments
this.domainName = params['domain']; | ||
this.form.controls.domain.setValue(this.domainName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the domainName
property used anywhere else? If not would it make sense to remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#335 has been merged and as far as I can see this could be merged.
Purpose
It has been discussed to be able to easily pass a domain to test to Zonemaster GUI, without interacting with the form. The idea is to pass the domain name in the URL
/check/<domain>
.The form's input field will be populated with this domain name and the form will be sent.
No option are currently passed. Only the domain. As I see it, we could extend this work to include options as GET parameters.
Context
Addresses #200 and follow-up on #335
Changes
/check/<domain>
/domain_check
to/check
/test/<test-id>
to/result/<test-id>
How to test this PR
/check/<domain>
and make sure the test is started for <domain>