-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
addMetadata and addTag do not work with parse-server-fs-adapter #8220
Comments
Thanks for opening this issue!
|
Not sure whether this is a bug or a feature request, depending on whether Parse FS adapter currently supports the tags feature at all, or whether it has to be implemented for each adapter individually. In any case, I've labelled it as a |
Metadata and tags were originally intended for the S3 adapter, see #6341. I believe the Parse Server just forwards these key/values to the respective storage, so other adapters whose storage doesn’t use them (i.e. FS adapter) will discard them. It seems like this feature is requesting to store these in the ParseFile object in the database so you can read them later. If this is the case, I would imagine there would also need to be a way to keep this in sync with the respective info in the storage which may not be straight forward. |
New Issue Checklist
Issue Description
addMetadata
andaddTag
do not work in Cloud Code with Parse FS Adapter.Steps to reproduce
I used the below code but the createdById and groupName values were not saved
Actual Outcome
The value
createdById
andgroupName
were not saved in ParsFile. Actually in ParsFile, metadata and tags are not saved.Expected Outcome
When
file.metadata()
andfile.tags()
are called, the values createdById and groupName should respectively be returnedEnvironment
Server
5.2.7
Ubuntu
etc
Database
MongoDB
5.0.10
etc
Logs
None
The text was updated successfully, but these errors were encountered: