-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix Event Imports #1788
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 Event Imports #1788
Changes from 2 commits
ebca357
c25909e
2b9b442
9cd3ffc
77c3d31
05aa31a
839aa6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import attr from 'ember-data/attr'; | ||
| import ModelBase from 'open-event-frontend/models/base'; | ||
|
|
||
| export default ModelBase.extend({ | ||
| resultStatus : attr('string'), | ||
| result : attr('string'), | ||
| task : attr('string'), | ||
| startsAt : attr('moment', { readOnly: true }) | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,5 +3,14 @@ import Route from '@ember/routing/route'; | |
| export default Route.extend({ | ||
| titleToken() { | ||
| return this.get('l10n').t('Import'); | ||
| }, | ||
| async model() { | ||
|
|
||
| const data = await this.get('store').findAll('importJob'); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not a valid query. There is no importJob model, please try importing the event yourself, and request a review when it works.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have implemented the importJob model both in backend and fronted. Please check fossasia/open-event-server#5514.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have tested it locally, it works.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @YogeshSharma0201 Oh okay will check on the server. |
||
|
|
||
| return { | ||
| data, | ||
| objectType: 'importJob' | ||
| }; | ||
| } | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| {{events/event-import-section}} | ||
| <br><br> | ||
| {{events/imports-history-section}} | ||
| {{events/imports-history-section data=model.data}} |
Uh oh!
There was an error while loading. Please reload this page.