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

Usernotes: Modifying and deleting existing usernotes #37

Open
eritbh opened this issue Jun 9, 2023 · 0 comments
Open

Usernotes: Modifying and deleting existing usernotes #37

eritbh opened this issue Jun 9, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@eritbh
Copy link
Member

eritbh commented Jun 9, 2023

There's no real way to change or delete a note in a Usernotes object right now*. without any form of unique identifier on usernotes; timestamps sort of work for that, but not really. We'll have to come up with an API to record changes to usernote objects and delete them.

* You can modify existing notes, technically, because Usernotes.get() returns references to the same note objects it holds, so any changes made there will be serialized out. But the array that's returned isn't the internal array, so deletion isn't possible - that's intentional until we consider the API for that more thoroughly.

@eritbh eritbh added the enhancement New feature or request label Jun 9, 2023
@eritbh eritbh added this to the v1.0.0 milestone Jun 9, 2023
@eritbh eritbh moved this to Todo in toolbox-devvit stuff Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant