Skip to content

🐛 Bug Report: event name for users.*.update.*.name is incorrect #3441

Closed

Description

@superseby2

👟 Reproduction steps

  • create a function that listens to users.*.update.name

👍 Expected behavior

  • inside the function APPWRITE_FUNCTION_EVENT should be users.*.update.name

Having the event name consistent is key if we want to condition based on it inside the function.
If it is a feature and not a bug :), a regex condition works fine but it is more work.

But for that specific event (users/update/name), it doesn't because the event name reported is missing a bit. See below.

👎 Actual Behavior

  • APPWRITE_FUNCTION_EVENT gives : users.62a30b4fdba4f5a24be1.update
    Which could be logical if it wasn't for the missing ".name"

So, at least to be consistent with other events it should be users.62a30b4fdba4f5a24be1.update.name
(but I still think that having somewhere the name of the generic event would be useful)

🎲 Appwrite version

Version 0.14.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    bug
    on Jun 28, 2022
  2. superseby2 commented on Jun 28, 2022

    @superseby2
    Author

    FYI : same thing when listening to users.*.update.prefs
    APPWRITE_FUNCTION_EVENT would give users.62a30b4fdba4f5a24be1.update

  3. TorstenDittmann commented on Jun 29, 2022

    @TorstenDittmann
    Contributor

    We actually should pass all events to the function here, not just one. So it looks like the one passed is the one without .update.name 👍🏻

  4. HarshMN2345 commented on Sep 8, 2026

    @HarshMN2345
    Member

    fixed in #13527

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions