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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: null value fields #371

Merged
merged 10 commits into from
Apr 11, 2023
Merged

Conversation

TGlide
Copy link
Contributor

@TGlide TGlide commented Mar 29, 2023

What does this PR do?

  • Adds null checkbox to non-required text attributes
  • Fixes falsy default values not being passed to server

Test Plan

Manual

Related PRs and Issues

N/A

Have you read the Contributing Guidelines on issues?

Yes

@TGlide TGlide added the enhancement New feature or request label Mar 29, 2023
@TGlide TGlide self-assigned this Mar 29, 2023
@vercel
Copy link

vercel bot commented Mar 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2023 10:59am
console-1-3-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2023 10:59am
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2023 10:59am

@stnguyen90
Copy link
Contributor

stnguyen90 commented Mar 31, 2023

Related Issue: appwrite/appwrite#4712

@stnguyen90
Copy link
Contributor

The behavior looks good for

  1. bool
    • null
    • false
  2. datetime
    • null
  3. email
    • null
  4. float
    • null
    • 0
  5. integer
    • null
    • 0
  6. string
    • null
    • Interestingly, you can't have an empty string as a default

image

@stnguyen90
Copy link
Contributor

null for enum also looks good:

image

Comment on lines +72 to +73
<ul
class="buttons-list u-gap-8 u-cross-center u-position-absolute d u-inset-block-end-1 u-inset-inline-end-1 u-padding-block-8 u-padding-inline-12"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth creating a "inputButtonContainer" component to avoid repeating all these classes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybeee, but if so we should probably do it in pink, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmmmm maybe 🤔

@TorstenDittmann TorstenDittmann merged commit 8c33a1d into feat-databases-v2 Apr 11, 2023
@TorstenDittmann TorstenDittmann deleted the feat/null-value-fields branch April 11, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants