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

Create page for bulk adding of image links to source chants #1728

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

dchiller
Copy link
Contributor

@dchiller dchiller commented Dec 12, 2024

Adds a new view to update image links on chants in a source based on a csv.

The changes to the Chant model made by this view are not captured in the Revision (i.e. as part of the object history). The fundamental issue is that saving every Chant in a Source (a requirement for a version to be saved) takes too long to keep the user waiting. We might eventually use some sort of task management to handle this, but for now, we don't create the revisions.

Screenshot of new add-image-links page:
image

Or, the same page with a different set of image links:
image

Closes #940.

Makes updates/additions to some development dependencies. django-stubs is updated and debugpy (to serve applications on a debug server that can connect to VSCode's debug functionality) is added.

Add a new view along with associated template and static files for the bulk upload (by csv) of image links to specific chants in a source.

Add form that dynamically creates fields for each folio and implements custom save method for updated image links.

Add a few checks for completeness and duplication of the csv file on the front-end.

Add associated tests.
@dchiller dchiller force-pushed the i940-attach-image-links branch from fca0523 to 87b9be3 Compare December 20, 2024 14:32
@dchiller dchiller marked this pull request as ready for review December 20, 2024 14:34
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.

We need a workflow for attaching image links to records
1 participant