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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas: Button API Editor support setting parameters #74637

Merged
merged 39 commits into from
Sep 18, 2023

Conversation

adela-almasan
Copy link
Contributor

Adds parameters support to APIEditor.

request_params.mov

Test Dashboard:
buttonAPIDashboard.txt

Fixes #74220

Special notes for your reviewer:
#74566 needs to be merged first

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@adela-almasan adela-almasan added add to changelog area/panel/canvas Issues related to canvas panel no-backport Skip backport of PR labels Sep 10, 2023
@adela-almasan adela-almasan added this to the 10.2.x milestone Sep 10, 2023
Base automatically changed from canvas_button_api_method to main September 11, 2023 13:03
@adela-almasan adela-almasan requested review from a team and Eve832 as code owners September 11, 2023 13:03
@adela-almasan adela-almasan requested review from mckn and removed request for a team September 11, 2023 13:03
# Conflicts:
#	public/app/features/canvas/elements/button.tsx
#	public/app/plugins/panel/canvas/editor/element/APIEditor.tsx
Copy link
Contributor

@nmarrs nmarrs left a comment

Choose a reason for hiding this comment

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

I think we should consider updating the implementation to something we are comfortable with longer term - for this I think we should consider making how the param is sent in the API request a param by param setting vs global to make this feature less restrictive

public/app/features/canvas/elements/button.tsx Outdated Show resolved Hide resolved
nmarrs and others added 3 commits September 14, 2023 13:24
# Conflicts:
#	public/app/features/canvas/elements/button.tsx
#	public/app/plugins/panel/canvas/editor/element/APIEditor.tsx
@adela-almasan
Copy link
Contributor Author

@nmarrs updated as per Luke's suggestion. I'll create a task for future improvements.
params

Copy link
Contributor

@nmarrs nmarrs left a comment

Choose a reason for hiding this comment

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

This approach seems reasonable, great job!

@adela-almasan adela-almasan merged commit 0815d7f into main Sep 18, 2023
14 checks passed
@adela-almasan adela-almasan deleted the 74220_canvas_btn_params branch September 18, 2023 14:25
@adela-almasan adela-almasan mentioned this pull request Oct 10, 2023
20 tasks
@zerok zerok modified the milestones: 10.2.x, 10.2.0 Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/frontend area/panel/canvas Issues related to canvas panel no-backport Skip backport of PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Canvas: Button API Editor support setting parameters
4 participants