Skip to content

feat: migrate APIs from HTTPs to python calls#90

Merged
Faraz32123 merged 15 commits intomasterfrom
feat/migrate_from_http_to_python_call
Oct 2, 2024
Merged

feat: migrate APIs from HTTPs to python calls#90
Faraz32123 merged 15 commits intomasterfrom
feat/migrate_from_http_to_python_call

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/openedx-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!

@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
@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
@taimoor-ahmed-1 taimoor-ahmed-1 deleted the feat/migrate_from_http_to_python_call branch February 14, 2025 09:57
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