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

feat: migrate APIs from HTTPs to python calls #90

Merged
merged 15 commits into from
Oct 2, 2024

Conversation

Faraz32123
Copy link
Contributor

@Faraz32123 Faraz32123 commented Sep 12, 2024

  • add python native APIs that'll be used by edx-platform instead of HTTPs

here's the related PR from edx-platform : openedx/edx-platform#35490

@Faraz32123 Faraz32123 self-assigned this Sep 12, 2024
@Faraz32123 Faraz32123 marked this pull request as draft September 12, 2024 07:54
@Faraz32123 Faraz32123 force-pushed the feat/migrate_from_http_to_python_call branch 6 times, most recently from 95a0788 to 80b6084 Compare September 12, 2024 13:38
Copy link
Contributor

@regisb regisb left a comment

Choose a reason for hiding this comment

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

Let's make this more native :) And don't forget unit tests!

forum/views/pins.py Outdated Show resolved Hide resolved
forum/apps.py Outdated Show resolved Hide resolved
@Faraz32123 Faraz32123 force-pushed the feat/migrate_from_http_to_python_call branch 4 times, most recently from eeec545 to 7eea53f Compare September 13, 2024 10:54
@Faraz32123 Faraz32123 marked this pull request as ready for review September 16, 2024 13:08
forum/api.py Outdated Show resolved Hide resolved
forum/api_utils.py Outdated Show resolved Hide resolved
@Faraz32123 Faraz32123 force-pushed the feat/migrate_from_http_to_python_call branch 2 times, most recently from ad844c8 to 555b3b7 Compare September 26, 2024 07:32
Muhammad Faraz Maqsood and others added 4 commits September 26, 2024 12:34
- add pin, unpin, commentables count_stats and get user's data by user id
python calls that'll be used by edx-platform instead of HTTPs
- call python native APIs in V2 HTTPs APIs
- add create_child_comment, create_parent_comment, delete_comment,
get_parent_comment, update_comment, python calls that'll be used
by edx-platform instead of HTTPs
- code refactor - pass params instead of a single dict to python native APIs
- add proper docstrings
- move those functions to model_utils which are accessing models
@Faraz32123 Faraz32123 force-pushed the feat/migrate_from_http_to_python_call branch 2 times, most recently from 4de5e72 to 1332e74 Compare September 26, 2024 09:48
Muhammad Faraz Maqsood and others added 3 commits September 26, 2024 14:48
- add responses for create_parent_comment, create_child_comment,
update_comment, get_commentables_stats, get_parent_comment, get_user,
pin_thread, unpin_thread native APIs
@Faraz32123 Faraz32123 force-pushed the feat/migrate_from_http_to_python_call branch from 1332e74 to a93a8c1 Compare September 26, 2024 09:49
@Faraz32123 Faraz32123 force-pushed the feat/migrate_from_http_to_python_call branch from 429394c to fc09a41 Compare October 2, 2024 06:33
@Faraz32123 Faraz32123 force-pushed the feat/migrate_from_http_to_python_call branch from 1da77a5 to b520231 Compare October 2, 2024 06:46
@Faraz32123 Faraz32123 force-pushed the feat/migrate_from_http_to_python_call branch from a5439df to bc1d351 Compare October 2, 2024 07:46
@Faraz32123 Faraz32123 merged commit d8f109a into master Oct 2, 2024
9 checks passed
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.

4 participants