Skip to content

Conversation

innovia
Copy link
Contributor

@innovia innovia commented May 8, 2018

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we use empty string instead of 'null', like we do for numeric columns? And, BTW, here should be check for undefined too (the same as below)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure will fix that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove this empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@innovia innovia force-pushed the hotfix/boolean-nullable-formator branch from d0725c8 to 138c081 Compare May 9, 2018 08:20
@innovia innovia force-pushed the hotfix/boolean-nullable-formator branch from 138c081 to ad0a981 Compare May 9, 2018 08:22
@innovia
Copy link
Contributor Author

innovia commented May 9, 2018

@kravets-levko @arikfr
I have fixed the display of null values to be empty string but we now have a problem with sorting.
it looks like the content of the field has changed but it's value is still 0/1

sorting as defined in dynamic table is: // ASC -> DESC -> off

sorting ASC:
image

note that the caret shows DESC order (I would expect to see the triangle flipped ^ )

looks like the order sign is flipped

<i ng-if="$ctrl.orderByColumnsIndex[column.name] > 0"
ng-class="{
'fa': true,
'fa-caret-down': $ctrl.orderByColumnsDirection[column.name] > 0,
'fa-caret-up': $ctrl.orderByColumnsDirection[column.name] < 0
}"></i>

And the issue now with the ASC sorting is that it breaks:

Order should be "", "false", "true"

image

@kravets-levko
Copy link
Collaborator

hi @innovia! it's because we use "raw" values for sorting. it's different issue (we already noticed it with number columns and null values), and it's not directly related to this PR. we'll fix it soon too, but for now let's merge your fix 😉

@innovia
Copy link
Contributor Author

innovia commented May 9, 2018

What about the caret direction? Seems like its fliiped

@kravets-levko
Copy link
Collaborator

cc: @kocsmy

@innovia
Copy link
Contributor Author

innovia commented May 15, 2018

@arikfr please review

@arikfr arikfr merged commit deb523e into getredash:master May 15, 2018
@arikfr
Copy link
Member

arikfr commented May 15, 2018

Thanks, @innovia !

@kocsmy can you look at the caret direction?

@kocsmy
Copy link
Collaborator

kocsmy commented May 16, 2018

I'd just follow the same as we use on our main nav:
screenshot 2018-05-16 23 10 22

@innovia
Copy link
Contributor Author

innovia commented May 17, 2018 via email

@kocsmy
Copy link
Collaborator

kocsmy commented May 17, 2018

Oh sorry, I misunderstood this :)

ASC: triangle pointing up, DESC: triangle pointing down.

@arikfr arikfr mentioned this pull request Jul 26, 2018
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants