Skip to content

🐛 Bug Report: User mapping code is not correct for prefs field #271

@ugurcany

Description

@ugurcany

👟 Reproduction steps

In User model, fromMap() and toMap() methods do not share exact opposite logic for prefs mapping. When you convert a User object to a Map, you would also expect to be able to re-convert that Map to User using fromMap method. It does not do that right now for the prefs field.

I created this PR to fix this issue, but apparently it does not allow us to create PRs here, so it's automatically closed. I also checked the sdk generator repo, but I don't have time to understand how it works to fix this minor mapping issue.

👍 Expected behavior

In User model, fromMap() and toMap() methods need to share exact opposite logic for prefs mapping.

👎 Actual Behavior

In User model, fromMap() and toMap() methods do not share exact opposite logic for prefs mapping.

🎲 Appwrite version

Version 2.0.x

💻 Operating system

Windows

🧱 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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions