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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: enum required and default #5391

Closed
2 tasks done
nev-21 opened this issue Apr 17, 2023 · 4 comments 路 Fixed by appwrite/console#394
Closed
2 tasks done

馃悰 Bug Report: enum required and default #5391

nev-21 opened this issue Apr 17, 2023 · 4 comments 路 Fixed by appwrite/console#394
Assignees
Labels
bug Something isn't working product / console Console, UI and UX issues product / databases Fixes and upgrades for the Appwrite Database.
Milestone

Comments

@nev-21
Copy link

nev-21 commented Apr 17, 2023

馃憻 Reproduction steps

  1. create an enum attribute
  2. add some options
  3. enable required
  4. click create (it will complain about default)
  5. impoosible to select a default value

image

馃憤 Expected behavior

The default-value dropdown should allow to select something

馃憥 Actual Behavior

When click in the dropdown options, nothing happens

馃幉 Appwrite version

Version 1.3.x

馃捇 Operating system

Linux

馃П Your Environment

v 1.3.1

馃憖 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?

@nev-21 nev-21 added the bug Something isn't working label Apr 17, 2023
@stnguyen90
Copy link
Contributor

@nev-21, thanks for raising this issue! 馃檹馃徏 This is actually the intended behavior 馃 If an attribute is required, the client must send it in the request so there's no need for a default value. The default value is used when an attribute is not required and no value is sent for the attribute.

@stnguyen90 stnguyen90 self-assigned this Apr 17, 2023
@stnguyen90 stnguyen90 added the product / databases Fixes and upgrades for the Appwrite Database. label Apr 17, 2023
@nev-21
Copy link
Author

nev-21 commented Apr 17, 2023

yes, that is true (i was thinking in terms of front-end).

But there is still a bug, cause appwrite should allow to create a required enum

I mean, the 1 to 4 reproduction steps (can't create required enums)

@ItzNotABug
Copy link
Contributor

@stnguyen90
The attribute is not created when you check Required,
the warning This field is required shows up if you click on Create.

Sort of similar to #5389, but for Enums.

@stnguyen90 stnguyen90 added the product / console Console, UI and UX issues label Apr 19, 2023
@TGlide TGlide assigned TGlide and unassigned stnguyen90 Apr 19, 2023
@stnguyen90 stnguyen90 assigned ArmanNik and unassigned TGlide Apr 19, 2023
@stnguyen90 stnguyen90 linked a pull request Apr 19, 2023 that will close this issue
@stnguyen90 stnguyen90 added this to the 1.3.2 milestone Apr 19, 2023
@mjolnirPH
Copy link

Having a similar issue in Windows v1.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / console Console, UI and UX issues product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants