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

File upload fixes #1562

Merged
merged 18 commits into from
Dec 2, 2022
Merged

File upload fixes #1562

merged 18 commits into from
Dec 2, 2022

Conversation

TheSlimvReal
Copy link
Collaborator

The file upload has been restructured to be more in-line with other form components and to support the automatic form-update functionality.

Visible/Frontend Changes

  • Uploading/removing files only happens when 'save' is clicked
  • No more confirmation popup when replacing/deleting files, as this can be undone by clicking 'cancel'

Architectural/Backend Changes

  • PUT-Requests to CouchDB are executed in sequence in order to support uploading of multiple files at the same time
  • EntityFormComponent has been cleaned up to less often create new forms. Now it only creates the form one and then updates the values when needed.

@github-actions
Copy link

Deployed to https://pr-1562.aam-digital.net/

@TheSlimvReal TheSlimvReal marked this pull request as draft November 30, 2022 10:03
@TheSlimvReal TheSlimvReal marked this pull request as ready for review November 30, 2022 11:31
@TheSlimvReal
Copy link
Collaborator Author

TheSlimvReal commented Nov 30, 2022

Has been deployed to https://fu.aam-digital.com https://fu.aam-digital.net

# Conflicts:
#	src/app/core/entity-components/entity-form/entity-form/entity-form.component.ts
Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

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

really, really clean code and tests. 😍

Functional testing:

  • add file + cancel form--> file name still shows in field until reload
  • whenever saving something other then file fields, the "apply remote changes" popup shows up now

@TheSlimvReal
Copy link
Collaborator Author

@sleidig sorry, I forgot to update the deployment after merging the master. The issues you mentioned seem to have been fixed after merging the latest changes from the master. I couldn't reproduce them afterwards.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.3% 3.3% Duplication

@sleidig sleidig merged commit 5cdb17c into master Dec 2, 2022
@sleidig sleidig deleted the file-upload-fixes branch December 2, 2022 17:02
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.14.0-master.22 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.14.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants