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

Clone volume #526

Merged
merged 114 commits into from
Feb 21, 2023
Merged

Clone volume #526

merged 114 commits into from
Feb 21, 2023

Conversation

lehecht
Copy link
Contributor

@lehecht lehecht commented Dec 9, 2022

  • Cloning files and their (annotation) labels is optional now
  • FormRequest is used for request validation

Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

There are two bigger points that I raise in the review comments:

  1. The API might be easier to use if you copy all images by default (if no file IDs are given). The same could be done for annotations and file labels (with a additional boolean parameters).

  2. The file_label_ids and label_ids should be the IDs of the labels table and not the image_labels or image_annotation_labels table (which both have the label IDs as label_id foreign key).

Also, you should add some test cases for the new behavior.

app/Http/Controllers/Api/VolumeController.php Outdated Show resolved Hide resolved
app/Http/Controllers/Api/VolumeController.php Outdated Show resolved Hide resolved
app/Http/Controllers/Api/VolumeController.php Outdated Show resolved Hide resolved
app/Http/Controllers/Api/VolumeController.php Outdated Show resolved Hide resolved
app/Http/Controllers/Api/VolumeController.php Outdated Show resolved Hide resolved
app/Http/Controllers/Api/VolumeController.php Outdated Show resolved Hide resolved
app/Http/Requests/CloneVolume.php Outdated Show resolved Hide resolved
app/Http/Requests/CloneVolume.php Outdated Show resolved Hide resolved
app/Http/Requests/CloneVolume.php Outdated Show resolved Hide resolved
app/Http/Requests/CloneVolume.php Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
lehecht and others added 14 commits February 1, 2023 18:57
Bumps [symfony/http-kernel](https://github.com/symfony/http-kernel) from 6.0.16 to 6.0.20.
- [Release notes](https://github.com/symfony/http-kernel/releases)
- [Changelog](https://github.com/symfony/http-kernel/blob/6.2/CHANGELOG.md)
- [Commits](symfony/http-kernel@v6.0.16...v6.0.20)

---
updated-dependencies:
- dependency-name: symfony/http-kernel
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…/http-kernel-6.0.20

Bump symfony/http-kernel from 6.0.16 to 6.0.20
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/commits)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…p-cache-semantics-4.1.1

Bump http-cache-semantics from 4.1.0 to 4.1.1
Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

Almost finished 👍

Please also add the two @psalm-suppress comments to the final changes.

app/Jobs/CloneImagesOrVideos.php Outdated Show resolved Hide resolved
app/Jobs/CloneImagesOrVideos.php Outdated Show resolved Hide resolved
routes/web.php Outdated Show resolved Hide resolved
tests/php/Http/Controllers/Api/VolumeControllerTest.php Outdated Show resolved Hide resolved
tests/php/Http/Controllers/Api/VolumeControllerTest.php Outdated Show resolved Hide resolved
tests/php/Http/Controllers/Api/VolumeControllerTest.php Outdated Show resolved Hide resolved
tests/php/Http/Controllers/Api/VolumeControllerTest.php Outdated Show resolved Hide resolved
tests/php/Jobs/CloneImagesOrVideosTest.php Outdated Show resolved Hide resolved
tests/php/Jobs/CloneImagesOrVideosTest.php Outdated Show resolved Hide resolved
@mzur
Copy link
Member

mzur commented Feb 20, 2023

The maintainer of the PHP linter Psalm was very quick with a fix for the issue that you discovered. I've updated the dependency in your branch. There is no need for the @psalm-suppress comments any more.

Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

Only one thing slipped through. Then everything is ready to be merged.

routes/web.php Outdated Show resolved Hide resolved
Copy link
Member

@mzur mzur left a comment

Choose a reason for hiding this comment

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

👍

@mzur mzur merged commit 3e11bec into biigle:clone-volume Feb 21, 2023
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.

None yet

2 participants