Create New Admin Route get_quest_users #326
Labels
Good first issue
Good for newcomers
OD Hack
Issue reserved for the OD Hack
open for contribution
An issue that is available for an Only Dust contribution
Description 📹
Implement a new admin route
get_quest_users
that retrieves a list of addresses who have completed at least one task of a specific quest. The route will accept aquest_id
parameter, fetch all task IDs associated with that quest, and then identify the addresses that have completed any of these tasks. This will allow admin users to see which participants have engaged with the quest to any extent. The route should be secured using the existing authentication middleware to ensure only authorized admin users can access this information.Proposed Actions 🛠️
Here’s a checklist of actions to follow for resolving this issue:
Fork and Create Branch:
Fork the repository and create a new branch using the issue number:
Implement Changes:
Create the Route: add a new handler in
src/endpoints/admin/quest_boost
:get_quest_users.rs
Define Request Parameters:
Implement the Handler Logic (should look something like that):
Run Tests and Commit Changes:
Testing:
quest_id
that has tasks and participants.quest_id
that has tasks but no participants.quest_id
to ensure appropriate error handling.auth_middleware
.Commit Changes:
git commit -m "Fix: Implement get_quest_users admin route"
Required 📋
To keep our workflow smooth, please make sure you follow these guidelines:
Close #[issue_id]
.Thank you for your contribution 🙏
The text was updated successfully, but these errors were encountered: