mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-24 22:01:13 -06:00
[PR #230] [MERGED] Fix target of mutations events on wildcard paths #179
Labels
No labels
IndexedDB
browser
bug
dependencies
documentation
duplicate
enhancement
feature request
indexes
indexes
invalid
pull-request
query
question
transaction logging
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase#179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/appy-one/acebase/pull/230
Author: @appy-one
Created: 5/30/2023
Status: ✅ Merged
Merged: 7/17/2023
Merged by: @appy-one
Base:
master← Head:fix/mutations-events-on-wildcard-paths📝 Commits (4)
8d657d9Fix mutations events on wildcard paths0dc9180fix * mutations events fired on higher paths2652212Add unit testad2ae13Add more tests📊 Changes
2 files changed (+120 additions, -31 deletions)
View changed files
📝
src/storage/index.ts(+63 -31)📝
src/test/events.spec.ts(+57 -0)📄 Description
If
mutationsornotify_mutationsare set on a path containing wildcards (* or named variables), the mutation'stargetis not being set correctly.Example:
TODO:
snap.ref.pathprobably containsusers/*/books, but should beusers/user1/booksin above example. Check this, fix it if true.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.