console icon indicating copy to clipboard operation
console copied to clipboard

🐛 Bug Report: Attributes can be both required and an array

Open Ananya2001-an opened this issue 2 years ago • 4 comments

👟 Reproduction steps

Appwrite database > collection > attributes > create attribute

👍 Expected behavior

In some cases it might be possible that a user wants to create an attribute that is both an array and also required, so making it an either-or case is not nice IMO.

👎 Actual Behavior

Currently it just allows u to choose one:

Screenshot 2023-06-05 220148

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Windows

🧱 Your Environment

No response

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

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Ananya2001-an avatar Jun 05 '23 16:06 Ananya2001-an

Hi @Ananya2001-an , thank you for reporting this. I updated our team internally so we can make improvements on this area to make it more clear.

tessamero avatar Jun 06 '23 16:06 tessamero

Thanks for the response @tessamero just wanted to clarify one thing that why are we defaulting it to required, I mean what if user doesn't want the array type attribute to be required? So basically we should have both options open, don't ya think?

Ananya2001-an avatar Jun 06 '23 16:06 Ananya2001-an

@Ananya2001-an I opened this up to an internal conversation so we can take action on this. Thank you for reporting it :)

tessamero avatar Jun 06 '23 16:06 tessamero

Sure no problem.... glad to help :)

Ananya2001-an avatar Jun 06 '23 16:06 Ananya2001-an