Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

IR-2549: create static resource using project name from request data #10353

Closed
wants to merge 3 commits into from

Conversation

jose-galvan
Copy link
Collaborator

Summary

When static resources are uploaded through the file browser service the project field is assigned by splitting the file path
and using the first segment after project. i.e for a file with the path projects/default-project/drop-shadow.png
the project would be default-project, however this approach doesn't work for multi-tenancy projects where the first segment of the path after projects/ only identifies the account name. To support both single-tenant and multi-tenancy projects the project name is now attached to the request, rather than being extracted from the file path.

Subtasks Checklist

Breaking Changes

References

closes #insert number here

QA Steps

  • Go into the studio.
  • Click on Files in the assets sections located at the bottom of the screen
  • Click on Upload Assets
  • Select a new file.
  • Verify in the db the static resource has been created with the appropriate project name.

@hanzlamateen
Copy link
Member

@HexaField can you please have a look of this

Copy link
Member

@HexaField HexaField left a comment

Choose a reason for hiding this comment

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

I didn't realise there was already for a task for this, aditya did it here based off the PR I have that changes a lot of the backend services

https://github.com/EtherealEngine/etherealengine/pull/10354/files

@HexaField HexaField closed this Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants