Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

API to communicate with VMS #415

Closed
wants to merge 2 commits into from

Conversation

abhi20161997
Copy link
Contributor

@abhi20161997 abhi20161997 commented Jun 4, 2018

Description

Sending meetup data like event name, date and venue to VMS

Fixes #411

Type of Change:

Delete irrelevant options.

  • Code

Code/Quality Assurance Only

  • New feature (non-breaking change which adds functionality pre-approved by mentors)

How Has This Been Tested?

Describe the tests you ran to verify your changes. Provide instructions or GIFs so we can reproduce. List any relevant details for your test.

Checklist:

Delete irrelevant options.

  • My PR follows the style guidelines of this project
  • I have performed a self-review of my own code or materials
  • I have commented my code or provided relevant documentation, particularly in hard-to-understand areas

Code/Quality Assurance Only

  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@abhi20161997 abhi20161997 added Priority: HIGH Category: Coding Changes to code base or refactored code that doesn't fix a bug. Program: GSOC Related to work completed during the Google Summer of Code Program. labels Jun 4, 2018
@abhi20161997
Copy link
Contributor Author

@yatna I have applied the filter for sorting.

@coveralls
Copy link

coveralls commented Jun 4, 2018

Coverage Status

Coverage increased (+0.006%) to 98.662% when pulling cc3e7a9 on abhi20161997:vms_api into 00a6726 on systers:develop.

@yatna yatna requested a review from nfebe June 4, 2018 15:03
yatna
yatna previously approved these changes Jun 4, 2018
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

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

Everything looks good, I suggest you add prefixes to all api routes... When this is merged I would create a base test which you can use a template.

selenium==3.12.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Ps, why does this appear as an addition?

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 might have backspaced and retyped- doesn't make a difference though

@@ -135,4 +135,5 @@
DeleteSupportRequestCommentView.as_view(),
name="delete_support_request_comment"),
url(r'^(?P<slug>[\w-]+)/(?P<meetup_slug>[\w-]+)/$', MeetupView.as_view(), name="view_meetup"),
url(r'^request_meetup_data/$', api_for_vms, name='api_for_vms'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't you add and API prefix? like api/ to make it clearer that one is dealing with API routes?

Choose a reason for hiding this comment

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

How about adding a vX prefix where X = version of our API, I've seen this followed quite much.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes makes sense something like api/vX (api/v1/request_meetup_data, api/v2/request_meetup_data ....)

@abhi20161997
Copy link
Contributor Author

@fenn-cs @Monal5031 I've added the prefix. Please have a look now.

@abhi20161997
Copy link
Contributor Author

@yatna . I made some changes suggested by @fenn-cs and @Monal5031 . Please can u approve again as the previous approval turned stale.

Monal5031
Monal5031 previously approved these changes Jun 6, 2018
Copy link

@Monal5031 Monal5031 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

nfebe
nfebe previously approved these changes Jun 6, 2018
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

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

Everything looks ok :)

@abhi20161997 abhi20161997 dismissed stale reviews from nfebe and Monal5031 via f28f729 June 6, 2018 20:38
@abhi20161997 abhi20161997 force-pushed the vms_api branch 3 times, most recently from bbcb4c3 to 789732b Compare June 6, 2018 20:54
@anitab-org anitab-org deleted a comment Jun 6, 2018
@abhi20161997 abhi20161997 force-pushed the vms_api branch 5 times, most recently from 839235f to cc3e7a9 Compare June 6, 2018 21:59
yatna
yatna previously approved these changes Jun 7, 2018


@api_view(['POST'])
def api_for_vms(request):
Copy link
Contributor

@poojithansl poojithansl Jun 7, 2018

Choose a reason for hiding this comment

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

Instead of function based views, please switch this to class based views as it has higher capabilities.

Merge pull request anitab-org#403 from abhi20161997/favicon_replace

Replacing the favicon
transfered and rewrote base, login and admin tests from automated testing

Signed-off-by: Fenn-25 <fenn25.fn@gmail.com>

api to communicate with VMS
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Category: Coding Changes to code base or refactored code that doesn't fix a bug. Program: GSOC Related to work completed during the Google Summer of Code Program.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants