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

Feature addon metadata #4167

Merged
merged 9 commits into from
Jun 29, 2023
Merged

Conversation

cwisniew
Copy link
Member

@cwisniew cwisniew commented Jun 23, 2023

Identify the Bug or Feature request

resolves #4166

Description of the Change

Any files in the root of the mtlib zip file also get entries in the metadata/ directory

Possible Drawbacks

If someone has a metadata/ directory already that contains the same filename it will be overwritten

Documentation Notes

Files at the top level of the .mtlib zip file will be available lib:///metadata/

Release Notes

  • Files at the top level of the .mtlib zip file will be available lib:///metadata/

This change is Reviewable

@cwisniew cwisniew added the feature Adding functionality that adds value label Jun 23, 2023
Asset asset =
Type.fromMediaType(mediaType)
.getFactory()
.apply(namespace + "/" + METADATA_DIR + path, bytes);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it intentional to add METADATA_DIR to path a second time here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Would you believe me if I said yes? No? yeah I wouldn't either...

I have updated so that the metadata dir doesn't get appended twice to the name of the asset

@cwisniew cwisniew enabled auto-merge June 28, 2023 20:16
@cwisniew cwisniew added this pull request to the merge queue Jun 29, 2023
Merged via the queue into RPTools:develop with commit e677b5f Jun 29, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

[Feature]: Add on Meta Data
2 participants