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 editing the structure of existing views #468

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

API for editing the structure of existing views #468

kgodey opened this issue Jul 21, 2021 · 2 comments
Labels
needs: unblocking Blocked by other work work: backend Related to Python, Django, and simple SQL

Comments

@kgodey
Copy link
Contributor

kgodey commented Jul 21, 2021

Problem

Users may want to change the structure of an existing view. We need to enable that from the backend.

Proposed solution

Users should be able to:

  • PATCH a set of columns to the columns field of /api/v0/views/<id>/ and entirely replace the columns in the view
  • POST a column to /api/v0/views/<id>/columns/ to add a new column to the view.
  • DELETE to /api/v0/views/<id>/columns/<id>/ to delete a column from a view.

The API should transform the updated list of columns into an appropriate query and update the view to use that query. The logic used should be similar to #465.

Additional context

This was referenced Jul 21, 2021
@kgodey kgodey changed the title API for editing existing views API for editing the structure of existing views Jul 21, 2021
@kgodey kgodey added needs: unblocking Blocked by other work type: enhancement work: backend Related to Python, Django, and simple SQL labels Jul 21, 2021
@kgodey kgodey added this to the 08. Working with Views milestone 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 20, 2021
@kgodey kgodey removed the stale label Oct 22, 2021
@kgodey
Copy link
Contributor Author

kgodey commented Oct 30, 2021

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

@kgodey kgodey closed this as completed Oct 30, 2021
Repository owner moved this from Blocked to Done in [NO LONGER USED] Mathesar work tracker 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
needs: unblocking Blocked by other work work: backend Related to Python, Django, and simple SQL
Projects
No open projects
Development

No branches or pull requests

1 participant