From e72b15d0abbc99c70dce4bebc54fb042697469a2 Mon Sep 17 00:00:00 2001 From: Haritest Date: Sat, 13 Apr 2024 17:09:51 +0530 Subject: [PATCH 1/2] Update sunbird_lms-service.env number_of_records_per_trip_content_cache_load added --- ansible/roles/stack-sunbird/templates/sunbird_lms-service.env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env index 99eba60118..6777db88be 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env @@ -173,3 +173,5 @@ static_host_url={{ igot_cephs3_storage_endpoint }} profile_update_url=/app/user-profile/details enrol_list_fields=contentType,name,channel,mimeType,appIcon,resourceType,identifier,trackable,objectType,organisation,pkgVersion,version,trackable,primaryCategory,posterImage,duration,creatorLogo,license,programDuration,avgRating,batches,endDate,startDate,status,enrollmentType,createdBy,certificates,competencies_v5,firstChildId,leafNodesCount,courseCategory + +number_of_records_per_trip_content_cache_load=200 From b3defcc649cfb068212ed464555ebf8980ff9125 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:11:29 +0530 Subject: [PATCH 2/2] Added sector create, read and subsector create APIs --- ansible/roles/kong-api/defaults/main.yml | 56 +++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 8af6720b38..6ab71de5e5 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -12677,7 +12677,7 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: getSector + - name: listSector uris: "/catalog/v1/sector" upstream_url: "{{ sb_cb_ext_service_url }}/v1/catalog/sector" strip_uri: true @@ -12694,3 +12694,57 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: readSector + uris: "/catalog/v1/sector/read" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/catalog/sector/read" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'dataAccess' + - name: rate-limiting + config.policy: local + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: createSector + uris: "/catalog/v1/sector/create" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/catalog/sector/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'dataAccess' + - name: rate-limiting + config.policy: local + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: createSubSector + uris: "/catalog/v1/subsector/create" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/catalog/subsector/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'dataAccess' + - name: rate-limiting + config.policy: local + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ medium_request_size_limit }}"