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

Integration of REST/API in client #4 #364

Merged
merged 16 commits into from
Mar 29, 2019
Merged

Integration of REST/API in client #4 #364

merged 16 commits into from
Mar 29, 2019

Conversation

bsekachev
Copy link
Member

  • Many client fixes:
    • Labels with white spaces and commas
    • Defiant
    • Splitting
    • Grouping
  • Repaired qunit tests for client
  • Many codacy issues have been resolved

@bsekachev bsekachev requested a review from nmanovic March 28, 2019 10:50
@@ -27,6 +27,14 @@
"airbnb",
],
"rules": {
"no-new": [0],
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to disable rules? Why don't fix the code?

Copy link
Member Author

Choose a reason for hiding this comment

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

@nmanovic
We can't fix the code. If we assign an expression 'new Class()' to any variable which is unusable, we got eslint error "unusable variable" . If we don't assign this expression to a variable, we got eslint error "new is not needed". If we remove new, we got syntax error and code doesn't work.

@@ -27,6 +27,14 @@
"airbnb",
],
"rules": {
"no-new": [0],
"class-methods-use-this": [0],
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably it is necessary to make methods as static if they don't use this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought about it. But there are many methods which is don't use "this" and if we do it static, they will become public available. I think it is not better way.

@@ -27,6 +27,14 @@
"airbnb",
],
"rules": {
"no-new": [0],
"class-methods-use-this": [0],
"no-restricted-properties": [0, {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe I already merged such changes? Do you need to merge develop into your branch?

Copy link
Member Author

Choose a reason for hiding this comment

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

I needed to do it in order to write unit tests. Probably small merge conflict will become here later, but I suppose it isn't big problem, to resolve it.

@nmanovic
Copy link
Contributor

@bsekachev , in the past we decided to use "full" version of js libraries because it is easy to debug problems. Now you are adding "min" versions. What is the reason for that? Does our "minimizer" work bad?

@bsekachev
Copy link
Member Author

@nmanovic
We don't have any minimizer yet, a bundler only. Now I don't see any problems in 3rd party libraries. If bugs occur, than they occur in our code. I believe to use minimized versions of js in production is right way and I am striving to it.

@nmanovic
Copy link
Contributor

@bsekachev , if we don't have minimiser yet than it is OK. The right way is to use non-minimised version of all libraries and minimise them together with our code. Using minimised libraries is good only if you have a static page and don't have any pipeline to preprocess js. We have the pipeline but in the past we disabled minimiser because it worked incorrectly.

@nmanovic nmanovic merged commit 30a5eb8 into nm/rest_api Mar 29, 2019
@bsekachev
Copy link
Member Author

@nmanovic
Okay, then we will use non-minimized versions in future.

@bsekachev bsekachev deleted the bs/rest_api branch March 29, 2019 07:11
TOsmanov pushed a commit to TOsmanov/cvat that referenced this pull request Aug 23, 2021
Git can't check for this whitespace error, so get Pylint to do it instead.
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.

2 participants