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

UI for editing join keys #166

Merged
merged 11 commits into from
Sep 27, 2024
Merged

UI for editing join keys #166

merged 11 commits into from
Sep 27, 2024

Conversation

sfc-gh-cnivera
Copy link
Collaborator

@sfc-gh-cnivera sfc-gh-cnivera commented Sep 26, 2024

This PR implements a UI within the edit flow for specifying join paths. It is only shown if the user has experimental features enabled.

The UI is used to add and edit join paths between two tables, specifying the join/relationship type as well as the join keys. Upon submitting, the joins are serialized into the YAML.

CleanShot.2024-09-26.at.10.53.05.mp4

mime="text/yaml",
use_container_width=True,
help=DOWNLOAD_HELP,
def validate_and_update_session_state() -> None:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Diff in this file is a bit complicated to read, but I'm essentially just:

  1. Moving the validation logic to a common function so that I can run it before the user clicks "Add joins", saving them a button click for validating
  2. Adding a new button for "Add joins"

@sfc-gh-cnivera sfc-gh-cnivera marked this pull request as ready for review September 26, 2024 17:50
Copy link
Collaborator

@sfc-gh-jsummer sfc-gh-jsummer left a comment

Choose a reason for hiding this comment

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

Please see comment to bring experimental features into Looker workflow.

admin_apps/journeys/iteration.py Show resolved Hide resolved
@sfc-gh-cnivera sfc-gh-cnivera merged commit fa87c2d into main Sep 27, 2024
2 checks passed
@sfc-gh-cnivera sfc-gh-cnivera deleted the cnivera/joins-ui branch September 27, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants