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

Added sorting by aliases in favorites #57

Merged
merged 10 commits into from
Jan 18, 2024

Conversation

stankis
Copy link
Contributor

@stankis stankis commented Jan 17, 2024

No description provided.

@@ -388,8 +389,10 @@ class Favorite extends Model {

const {login} = requestedBy;

const alias = name ? name.toLowerCase() : null;
Copy link
Collaborator

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

Copy link
Contributor Author

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 () {
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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

@stankis stankis requested a review from jhoncool January 18, 2024 13:45
imsitnikov
imsitnikov previously approved these changes Jan 18, 2024
imsitnikov
imsitnikov previously approved these changes Jan 18, 2024
imsitnikov
imsitnikov previously approved these changes Jan 18, 2024
@stankis stankis merged commit d21361e into main Jan 18, 2024
4 checks passed
@stankis stankis deleted the CHARTS-8968-search-on-favorites-aliases branch January 18, 2024 18:48
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