-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
API for creating new views #465
Labels
work: backend
Related to Python, Django, and simple SQL
Comments
This was referenced Jul 21, 2021
This was referenced Jul 21, 2021
Closed
This issue has not been updated in 90 days and is being marked as stale. |
I'm closing this issue. Backend work will be tracked in these issues once design work has been completed: |
Repository owner
moved this from Draft
to Done
in [NO LONGER USED] Mathesar work tracker
Oct 30, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Users will want to build views from using columns from different tables or views. We need to enable that from the backend.
Proposed solution
We need a way for users to
POST
a set of columns to/api/v0/views/
and create a new view.The API should take in one of the following:
If an existing table or view is passed in, we'll treat it as a list of all columns from that table or view.
The API should then transform the list of columns into an appropriate query and create a view using that query. To keep the scope small, we'll only support creating views from columns in tables or views that have a direct foreign key relationship to or from one of the other columns specified.
Additional context
The text was updated successfully, but these errors were encountered: