focalboard/webapp
Johannes Marbach 0291052c1c
[GH-912] Discard (milliseconds) when counting create/update dates (#981)
* [GH-912] Discard (milliseconds) when counting create/update dates

Card creation and update dates are displayed with hours and minutes only on
the UI. When the full timestamp is used for counting unique values, this
leads to a discrepancy because the (milli)second parts impact the count
but are not visible to the user.

This commit fixes creation and update timestamps to minutes accuracy
before their values enter any calculation.

Closes: #912

* Add parentheses to please the linter

* Add 1s to test fixtures to cover bug scenario

* Add dedicated unit tests for creation / update 1s and 1m apart

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-08-24 15:00:51 +05:30
..
@custom_types Ran npm run fix 2020-10-20 12:50:53 -07:00
__mocks__ Add unit test for propertyMenu.tsx - basic setup 2021-03-19 07:41:11 -05:00
cypress Adding support for embed the webapp into the plugin (#597) 2021-07-29 20:08:39 +02:00
html-templates Adding support for embed the webapp into the plugin (#597) 2021-07-29 20:08:39 +02:00
i18n Translations update from Weblate (#1066) 2021-08-23 10:46:17 +02:00
src [GH-912] Discard (milliseconds) when counting create/update dates (#981) 2021-08-24 15:00:51 +05:30
static Default favicon 2021-01-28 09:38:04 -08:00
.eslintignore Move package.json and webpack to under webapp 2020-10-20 11:48:08 -07:00
.eslintrc.json Refactor: card contentOrder 2020-12-18 12:52:45 -08:00
.nvmrc docker: fix docker file image and apply some good practices (#552) 2021-07-01 11:46:03 +02:00
.prettierignore Add prettier at least for css (#327) 2021-04-28 16:28:52 +02:00
.prettierrc.json Add prettier at least for css (#327) 2021-04-28 16:28:52 +02:00
cypress.json New Props: Created By, Created At, Updated By, Updated At (#583) 2021-07-08 20:06:43 +05:30
NOTICE.txt [GH-38] Add date property (#391) 2021-05-10 07:46:07 +02:00
package-lock.json Making theming compatible with mattermost on plugin mode (#883) 2021-08-06 19:58:28 +02:00
package.json Making theming compatible with mattermost on plugin mode (#883) 2021-08-06 19:58:28 +02:00
tsconfig.json Add Cypress tests 2020-12-10 13:45:56 -08:00
tslint.json Move package.json and webpack to under webapp 2020-10-20 11:48:08 -07:00
webpack.common.js Added hash when loacind JS file to bust cache (#755) 2021-07-20 16:48:41 +05:30
webpack.dev.js Introduce checkbox property type (#439) 2021-06-02 15:53:52 +05:30
webpack.prod.js Use cross-env instead of win-node-env (#656) 2021-07-15 19:30:22 -07:00