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

Cloud Config date converts to object #2566

Open
4 tasks done
mtrezza opened this issue May 16, 2024 · 1 comment
Open
4 tasks done

Cloud Config date converts to object #2566

mtrezza opened this issue May 16, 2024 · 1 comment
Labels
bounty:$20 Bounty applies for fixing this issue (Parse Bounty Program) type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@mtrezza
Copy link
Member

mtrezza commented May 16, 2024

New Issue Checklist

Issue Description

When adding a Cloud Config param of type "Date", then refreshing the dashboard page, the date object is displayed incorrectly as an object.

Steps to reproduce

  1. Add Cloud Config param of type "Date".

  2. Set a date value:
    image

  3. Create param; date value is stored as 2024-05-05T00:36:00.000Z:
    image

  4. Refresh browser page; date value is stored as {"__type":"Date","iso":"2024-05-05T00:36:00.000Z"}:
    image

    The date value is displayed as a date object, which should not happen.

  5. Edit the param; the date object value appear, can be edited and saved.
    image

    If pasting the previous value string 2024-05-05T00:36:00.000Z, the save button is disabled, because this string cannot be saved directly despite being displayed in step 3.

Analysis

  • When first creating the param, the date value shows a date picker. Afterwards, the date is shown in text form, either as date string or date object. Instead of showing the date in 3 different forms, a single form should be chosen. The text form is the preferred form, because text can be copied/pasted and a date value can be defined in full detail (microseconds, time zone, etc).
  • A date picker can be offered in addition to the text field for easer date entry, by clicking on a calendar icon.
  • To make it easier to enter a date value for users who are not familiar with the ISO format, the ISO format should be displayed as placeholder when the value field is empty, or in the description field on the side.

Environment

Dashboard

  • Parse Dashboard version: 6.0.0-alpha.6
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Safari
  • Browser version: Version 17.4.1 (19618.1.15.11.14)
Copy link

parse-github-assistant bot commented May 16, 2024

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza mtrezza added type:bug Impaired feature or lacking behavior that is likely assumed bounty:$20 Bounty applies for fixing this issue (Parse Bounty Program) labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty:$20 Bounty applies for fixing this issue (Parse Bounty Program) type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

1 participant