-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: remove duplicate import and no relative import #4015
Conversation
Isnt @snitin315 working on it ? |
@maze-runnar you should have notified before making PR as per the guidelines. Its ok for this issue . Hope you won't repeat this again in future. |
Sorry , i just missed that for the first and last time, i will definitily take care of this in future. |
Status? |
completed...i think 😐 . is there anything remaining? |
import QUnit from 'qunit'; | ||
import config from '../config/environment'; | ||
import config from 'open-event-frontend/config/environment'; |
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.
Are you sure this is correct way?
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.
@snitin315 , can you please pull these changes to test. it's working as far i tested for everyone's concern if you once please check it.
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.
Are you sure this is correct way?
I think it is, other files of project used this type of import.
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'm not sure , but I think somewhere I read that. In ember.js the project-name/
refers to the app
folder by default. Please check if the statement is correct .
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.
@snitin315 app.js uses same kind of import -
import Application from '@ember/application';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'open-event-frontend/config/environment';
const App = Application.extend({
modulePrefix : config.modulePrefix,
podModulePrefix : config.podModulePrefix,
Resolver
});
loadInitializers(App, config.modulePrefix);
export default App;
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.
import Application from '@ember/application';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'open-event-frontend/config/environment';
const App = Application.extend({
modulePrefix : config.modulePrefix,
podModulePrefix : config.podModulePrefix,
Resolver
});
loadInitializers(App, config.modulePrefix);
export default App;
when life is unfair 😕 :
Why I see failing checks if the PR is complete ?
…On Sat, 15 Feb, 2020, 15:57 Nitin Kumar, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tests/test-helper.js
<#4015 (comment)>
:
> import QUnit from 'qunit';
-import config from '../config/environment';
+import config from 'open-event-frontend/config/environment';
Are you sure this is correct way?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4015?email_source=notifications&email_token=AKQMTLQYXWZNCJM2F2LOJWTRC67Q7A5CNFSM4KQ36JMKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCVVRFWA#pullrequestreview-359338712>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKQMTLX2FE6IMVDMRTBXRRDRC67Q7ANCNFSM4KQ36JMA>
.
|
Considering that the build is failing, yes |
Does this even work on your local? Is site running after this changes ?
…On Sat, 15 Feb, 2020, 15:59 Areeb Jamal, ***@***.***> wrote:
completed...i think neutral_face . is there anything remaining?
Considering that the build is failing, yes
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4015?email_source=notifications&email_token=AKQMTLWIZKX2Q45HDGY3ZRTRC67Z7A5CNFSM4KQ36JMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL3HDZY#issuecomment-586576359>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKQMTLQVW7HKFOMIL4TJOUTRC67Z7ANCNFSM4KQ36JMA>
.
|
yes, it's running with same code. |
The only issue is in the test loader |
How to resolve this? |
By fixing it |
Codecov Report
@@ Coverage Diff @@
## development #4015 +/- ##
===============================================
+ Coverage 21.73% 21.80% +0.07%
===============================================
Files 452 451 -1
Lines 4726 4724 -2
===============================================
+ Hits 1027 1030 +3
+ Misses 3699 3694 -5
Continue to review full report at Codecov.
|
@iamareebjamal , Done! |
Why there another app.js was added ? |
@kushthedude So this link is telling wrong appraoch about how to remove relative imports. |
Didn't see that. Reverting |
This reverts commit 3ce9b50.
Fixes #3940
fixing es-lint warning for duplicate import and relative parent imports
Checklist
development
branch.