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

[Bug] Clear cache if deleting assessment from admin console #165

Open
aakashyadav-kgp opened this issue May 11, 2023 · 9 comments
Open

[Bug] Clear cache if deleting assessment from admin console #165

aakashyadav-kgp opened this issue May 11, 2023 · 9 comments
Assignees

Comments

@aakashyadav-kgp
Copy link
Collaborator

aakashyadav-kgp commented May 11, 2023

Description: We want to delete/invalidate cache whenever some one deletes an entry from the admin console. These entry are nothing but data inputted by teachers. We generally delete these because the teacher has inputted wrong data and wants to fill again. As of now since cache is not invalidated, the app shows the cached data itself. Therefore not allowing the teacher to fill data again.

@choxx
Copy link
Contributor

choxx commented May 18, 2023

I checked, and currently, we do not hit the invalidation API. This support has to be added at front end.

Sharing the CURL below:

curl --location --globoff '{{HOST-DOMAIN}}/api/v5/assessment/invalidate/v2/?assessments=[{{assessment-ids}}]&udises=[{{school-udise-list}}]' \
--header 'Authorization: Bearer {{token-here}}'

@Coding-Thunder @amit-s19 to proceed.

@karntrehan karntrehan assigned amit-s19 and unassigned choxx May 19, 2023
@amit-s19
Copy link
Collaborator

Hi. After going through this, It will be a 1d effort. I can pick this up from Monday.

@amit-s19
Copy link
Collaborator

I'd need some more time to complete this task this is due to the fact that the invalidate API requires UDISE and Assessment-id to work.

We are able to get the assessment id's once the record is deleted but there is no way to get school UDISE because there is no way to get the selected record by default.

I'll have to create a new custom component for this wherein we are able to maintain a state of selected records so that UDISE and assessment-ids can then be easily provided in the api.

@amit-s19
Copy link
Collaborator

Moved to staging.

@charanpreet-s
Copy link

Blocked on @aakashyadav-kgp for tetsing. @aakashyadav-kgp to give KT to @Nirali010129

@aakashyadav-kgp
Copy link
Collaborator Author

@amit-s19 didnot work. I deleted 2C mathematics data for baseline assessment (4-5) from sandbox. But data is still visible on application as fixed.

Image

Image

@karntrehan
Copy link

@amit-s19 has this been fixed?

@amit-s19
Copy link
Collaborator

amit-s19 commented Jun 5, 2023

@aakashyadav-kgp can you please test again?

@aakashyadav-kgp
Copy link
Collaborator Author

@amit-s19 bro not working. let debug this on a call?

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

No branches or pull requests

5 participants