-
Notifications
You must be signed in to change notification settings - Fork 24
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
Added sorting by aliases in favorites #57
Conversation
src/db/models/favorite/index.ts
Outdated
@@ -388,8 +389,10 @@ class Favorite extends Model { | |||
|
|||
const {login} = requestedBy; | |||
|
|||
const alias = name ? name.toLowerCase() : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened if someone send name == ''
(empty string) to api? Is it okay that alias
will be null and displayAlias
will be empty string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible if you make api call manually (from ui it is not possible to send empty string now), anyway l agree that it should be consistent. Fixed
require('../../index'); | ||
import {db} from '../index'; | ||
|
||
(async function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to write a description here about reason or use cases for that scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is a temporary script which facilitates migration, and will be deleted after release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, added comment with description at top
No description provided.