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

API for creating new views #465

Closed
kgodey opened this issue Jul 21, 2021 · 2 comments
Closed

API for creating new views #465

kgodey opened this issue Jul 21, 2021 · 2 comments
Labels
type: enhancement New feature or request work: backend Related to Python, Django, and simple SQL

Comments

@kgodey
Copy link
Contributor

kgodey commented Jul 21, 2021

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:

  • a list of columns (and their associated tables/views)
  • an existing table
  • an existing view

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

@kgodey kgodey added ready Ready for implementation type: enhancement New feature or request work: backend Related to Python, Django, and simple SQL work: database labels Jul 21, 2021
@kgodey kgodey added this to the 08. Working with Views milestone Jul 21, 2021
@kgodey kgodey added needs: unblocking Blocked by other work and removed ready Ready for implementation labels Jul 21, 2021
@github-actions
Copy link

This issue has not been updated in 90 days and is being marked as stale.

@github-actions github-actions bot added the stale label Oct 19, 2021
@kgodey kgodey added status: draft and removed needs: unblocking Blocked by other work stale labels Oct 19, 2021
@kgodey
Copy link
Contributor Author

kgodey commented Oct 30, 2021

I'm closing this issue. Backend work will be tracked in these issues once design work has been completed:

@kgodey kgodey closed this as completed Oct 30, 2021
@kgodey kgodey removed this from the [09] Working with Views milestone Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request work: backend Related to Python, Django, and simple SQL
Projects
No open projects
Development

No branches or pull requests

1 participant