Skip to content

Conversation

@YogeshSharma0201
Copy link
Contributor

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

This PR is subpart of PR #1788, for easier testing and review.
Backend Changes PR fossasia/open-event-server/pull/5531

@YogeshSharma0201 YogeshSharma0201 force-pushed the import_event branch 2 times, most recently from 985e942 to 1ae4d9a Compare January 29, 2019 07:10
@abhinavk96 abhinavk96 requested a review from niranjan94 February 2, 2019 17:40
Copy link
Contributor

@abhinavk96 abhinavk96 left a comment

Choose a reason for hiding this comment

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

@YogeshSharma0201 Update this PR please

var endpoint = 'import/json';
var ext = file.name.split('.');
ext = ext[ext.length - 1].toLowerCase();
if (ext === 'xml') {
Copy link
Member

Choose a reason for hiding this comment

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

What about .zip, .xcal cases ? The upload input accepts those too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@niranjan94 actually only .zip files can be successfully imported, its endpoint is import/json. Other cases don't even have a valid endpoint, but eventyay had this code so i thought they can be implemented later on the server side. Should i only accept .zip then?

Copy link
Contributor

Choose a reason for hiding this comment

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

@YogeshSharma0201 add the .zip and .xcal cases, it's fine if server doesn't accept them for now.

var endpoint = 'import/json';
var ext = file.name.split('.');
ext = ext[ext.length - 1].toLowerCase();
if (ext === 'xml') {
Copy link
Contributor

Choose a reason for hiding this comment

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

@YogeshSharma0201 add the .zip and .xcal cases, it's fine if server doesn't accept them for now.

@YogeshSharma0201
Copy link
Contributor Author

@CosmicCoder96 i have included .xcal case and .zip is already added, its api is import/json.

@abhinavk96 abhinavk96 merged commit 4b711e6 into fossasia:development Mar 6, 2019
mrsaicharan1 pushed a commit to mrsaicharan1/open-event-frontend that referenced this pull request Apr 1, 2019
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