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: set default type of datetime to null #235

Merged
merged 4 commits into from
Jan 27, 2023

Conversation

christyjacob4
Copy link
Member

@christyjacob4 christyjacob4 commented Jan 16, 2023

What does this PR do?

  1. Fix for 🐛 Bug Report: DateTime Attribute Unexpectedly Updates appwrite#4981

Before

Screen.Recording.2023-01-16.at.11.54.51.AM.mov

After

Screen.Recording.2023-01-16.at.11.55.20.AM.mov
  1. Fix for 🐛 Bug Report: Not required attribute (format url) has invalid validation in console 2.0 appwrite#4989

Before

Screen.Recording.2023-01-16.at.7.43.45.PM.mov

After

Screen.Recording.2023-01-16.at.7.42.49.PM.mov

Test Plan

Existing tests

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

@vercel
Copy link

vercel bot commented Jan 16, 2023

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

Name Status Preview Comments Updated
console ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 16, 2023 at 2:25PM (UTC)

Comment on lines +42 to +44
if (value === '') {
value = null;
}
Copy link
Member

Choose a reason for hiding this comment

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

I don't think there is any difference, but is there a reason why we handle it like this instead of doing

$: if(!value){
value = null
}

Copy link
Member Author

Choose a reason for hiding this comment

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

@ArmanNik I tried it, but on doing this, for some reason the update button stops working. It does not detect a change in the input field that way

Screen.Recording.2023-01-16.at.9.04.41.PM.mov

Copy link
Member

Choose a reason for hiding this comment

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

Ahaahahahah got it 💪 that's a very weird behavior 😆

@christyjacob4
Copy link
Member Author

Screenshot 2023-01-16 at 8 56 22 PM

I tried to fix this issue as well where URL attributes show up as string in the UI, and I realised that the API response is structured that way.

Screenshot 2023-01-16 at 8 57 46 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants