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

Set creator/collection/license/tags during upload #2637

Merged
merged 4 commits into from
Sep 6, 2024
Merged

Conversation

Floppy
Copy link
Collaborator

@Floppy Floppy commented Sep 6, 2024

Resolves #2382

@Floppy Floppy added the feature User-facing features and product enhancements label Sep 6, 2024
Copy link

codeclimate bot commented Sep 6, 2024

Code Climate has analyzed commit 1aa0a12 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

The test coverage on the diff in this pull request is 90.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 86.8% (0.0% change).

View more on Code Climate.

@Floppy Floppy merged commit 91ae6dd into main Sep 6, 2024
11 checks passed
@@ -1,21 +1,27 @@
class ProcessUploadedFileJob < ApplicationJob
queue_as :default

def perform(library_id, uploaded_file, owner: nil)
def perform(library_id, uploaded_file, owner: nil, creator_id: nil, collection_id: nil, tags: nil, license: nil)
Copy link

Choose a reason for hiding this comment

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

Method perform has 31 lines of code (exceeds 25 allowed). Consider refactoring.

@Floppy Floppy deleted the set-data-on-upload branch September 6, 2024 11:48
truecharts-admin referenced this pull request in truecharts/public Sep 10, 2024
….78.0@332ca1c by renovate (#26210)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/manyfold3d/manyfold](https://redirect.github.com/manyfold3d/manyfold)
| minor | `0.77.3` -> `0.78.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>manyfold3d/manyfold (ghcr.io/manyfold3d/manyfold)</summary>

###
[`v0.78.0`](https://redirect.github.com/manyfold3d/manyfold/releases/tag/v0.78.0)

[Compare
Source](https://redirect.github.com/manyfold3d/manyfold/compare/v0.77.3...v0.78.0)

Now you can set a creator, collection, license and tags straight away at
upload time! That'll make things a bit easier...

#### What's Changed

##### ✨ New Features ✨

- Set creator/collection/license/tags during upload by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2637](https://redirect.github.com/manyfold3d/manyfold/pull/2637)

##### 🐛 Bug Fixes 🐛

- Calculate tag list before model pagination is applied by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2633](https://redirect.github.com/manyfold3d/manyfold/pull/2633)
- Fix download behaviour for ASCII files by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2634](https://redirect.github.com/manyfold3d/manyfold/pull/2634)
- Make sure new tags are used in paths in bulk edit organize by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2638](https://redirect.github.com/manyfold3d/manyfold/pull/2638)
- Fix incorrect DISTINCT queries by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2642](https://redirect.github.com/manyfold3d/manyfold/pull/2642)
- Fix tags not being removed in bulk editor by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2653](https://redirect.github.com/manyfold3d/manyfold/pull/2653)
- Move activity backfill to after permission-related DB changes by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2659](https://redirect.github.com/manyfold3d/manyfold/pull/2659)
- Sweep up old cache files every hour by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2660](https://redirect.github.com/manyfold3d/manyfold/pull/2660)
- Improve error visibility for failed uploads by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2664](https://redirect.github.com/manyfold3d/manyfold/pull/2664)
- Make archive extraction thread-safe by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2665](https://redirect.github.com/manyfold3d/manyfold/pull/2665)
- Fix changing presupported state causing database inconsistency by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2666](https://redirect.github.com/manyfold3d/manyfold/pull/2666)

##### 🛠️ Other Improvements 🛠️

- Update to Ruby 3.3.5 by
[@&#8203;Floppy](https://redirect.github.com/Floppy) in
[https://github.com/manyfold3d/manyfold/pull/2641](https://redirect.github.com/manyfold3d/manyfold/pull/2641)

**Full Changelog**:
manyfold3d/manyfold@v0.77.3...v0.78.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4wIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJhdXRvbWVyZ2UiLCJ1cGRhdGUvZG9ja2VyL2dlbmVyYWwvbm9uLW1ham9yIl19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature User-facing features and product enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tagging during upload
1 participant