Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃 Update webhook edit page #3785

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

josemigallas
Copy link
Contributor

@josemigallas josemigallas commented May 14, 2024

@josemigallas josemigallas requested a review from a team May 14, 2024 12:15
@josemigallas josemigallas self-assigned this May 14, 2024
@josemigallas josemigallas force-pushed the THREESCALE-10268_webhook_edit branch 4 times, most recently from 33ccc08 to 657ddba Compare May 16, 2024 08:32
hidden_field_html + input + label + description
end

return checkbox if options[:nude]
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm... is that needed? I don't notice any changes if I drop this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I makes the resulting HTML exactly like Patternfly 4, but like you say, it doesn't affect either the layout or the tests so I will remove it.

div class="pf-c-form__section-title" aria-hidden="true" Webhooks endpoint
div class="pf-c-form__group"
- show_action = @webhook.persisted? && @webhook.url.present?
= form.input :url, as: :patternfly_input, action:(show_action ? { title: 'Ping!', 'data-ping-url': provider_admin_webhooks_path } : nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's kinda weird, that you need to actually enable webhooks, and set the URL, and save the form, and only then the Ping button will appear. But that was the previous behavior also, so it's fine.

app/lib/three_scale.rb Outdated Show resolved Hide resolved
Given they go to the new webhook page
And there shouldn't be a button to "Ping!"
When the form is submitted with:
| URL | http://google.com |
Copy link
Contributor

@mayorova mayorova May 17, 2024

Choose a reason for hiding this comment

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

I don't get why we are using google.com in our examples 馃檭 maybe it needs to be changed to something more redhatt-y or 3scale-ey

but this was like this before, so... OK.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yes! In fact I meant to change it, but cucumbers sucked all my energy and I forgot. I will do it asap.

Copy link
Contributor

@mayorova mayorova left a comment

Choose a reason for hiding this comment

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

馃憤

@josemigallas josemigallas force-pushed the THREESCALE-10268_webhook_edit branch from 27e4619 to 28c5cbf Compare May 23, 2024 15:12
@josemigallas josemigallas merged commit a0ce253 into master May 23, 2024
17 of 21 checks passed
@josemigallas josemigallas deleted the THREESCALE-10268_webhook_edit branch May 23, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants