Skip to content

[ENT-10287] - feat: add can_request action#702

Merged
hamzawaleed01 merged 4 commits into
mainfrom
ENT-10287/feat-can-request-method
May 23, 2025
Merged

[ENT-10287] - feat: add can_request action#702
hamzawaleed01 merged 4 commits into
mainfrom
ENT-10287/feat-can-request-method

Conversation

@hamzawaleed01
Copy link
Copy Markdown
Contributor

@hamzawaleed01 hamzawaleed01 commented May 15, 2025

Description:
Introduced a new can_request endpoint for BnR(Browse and Request) feature.
It checks if a learner can request access to content. The flow is:
1. Find BnR enabled policies first
2. Check if content key exists in those policies
3. Check for existing pending request by this learner

Jira:
ENT-10287

Merge checklist:

  • ./manage.py makemigrations has been run
    • Note: This must be run if you modified any models.
      • It may or may not make a migration depending on exactly what you modified, but it should still be run.

Post merge:

  • Ensure that your changes went out to the stage instance
  • Deploy to prod instance

@hamzawaleed01 hamzawaleed01 force-pushed the ENT-10287/feat-can-request-method branch from 6a972b4 to cdcca14 Compare May 15, 2025 14:56
Comment thread enterprise_access/apps/api/v1/views/subsidy_access_policy.py Outdated
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-10287/feat-can-request-method branch 5 times, most recently from 41377bf to 8e6e64d Compare May 19, 2025 10:24
Comment thread enterprise_access/apps/api/serializers/subsidy_access_policy.py Outdated
Comment thread enterprise_access/apps/api/serializers/subsidy_access_policy.py Outdated
Comment thread enterprise_access/apps/api/serializers/subsidy_access_policy.py Outdated
Comment thread enterprise_access/apps/api/serializers/subsidy_access_policy.py
Comment thread enterprise_access/apps/api/v1/tests/test_subsidy_access_policy_views.py Outdated
Comment thread enterprise_access/apps/api/v1/views/subsidy_access_policy.py
Comment thread enterprise_access/apps/api/v1/views/subsidy_access_policy.py Outdated
Comment thread enterprise_access/apps/api/v1/views/subsidy_access_policy.py
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-10287/feat-can-request-method branch from 8e6e64d to 4cb7f0b Compare May 20, 2025 11:44
Comment thread enterprise_access/apps/api/v1/tests/test_subsidy_access_policy_views.py Outdated
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-10287/feat-can-request-method branch from 4cb7f0b to 9a8b6e8 Compare May 20, 2025 13:02
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-10287/feat-can-request-method branch 4 times, most recently from a5f9b15 to 7b4c919 Compare May 21, 2025 09:53
Comment thread enterprise_access/apps/api/v1/views/subsidy_access_policy.py Outdated
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-10287/feat-can-request-method branch from 7b4c919 to 7275d98 Compare May 22, 2025 13:01
Copy link
Copy Markdown
Member

@sameenfatima78 sameenfatima78 left a comment

Choose a reason for hiding this comment

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

Looks good, dropped one minor suggestion. Please also get a review from @zamanafzal and @ahmad-hassan-dev

Comment thread enterprise_access/apps/api/v1/views/subsidy_access_policy.py Outdated
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-10287/feat-can-request-method branch 2 times, most recently from b50b744 to 39b25c0 Compare May 22, 2025 14:53
@hamzawaleed01 hamzawaleed01 force-pushed the ENT-10287/feat-can-request-method branch from 39b25c0 to f67a30a Compare May 22, 2025 15:02
@hamzawaleed01 hamzawaleed01 merged commit 930e8ff into main May 23, 2025
3 of 4 checks passed
@hamzawaleed01 hamzawaleed01 deleted the ENT-10287/feat-can-request-method branch May 23, 2025 07:08
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.

2 participants