RealDevSquad / RealDevSquad/website-backend

[RFC]Role filter in users API

Open
#1,486 9 comments 0 reactions 1 assignee View on GitHub

@anishpawaskar is already working on this.

Since Sep 7, 2023.

Dominant language
JavaScript
Stars
74
Forks
276
Avg merge
1d 26m
Merged PRs (30d)
14

Description

Why we are making this change?

  • We are planning to deprecate the /members API because naming convention is not right and it is returning the wrong data it should return members but it’s returning all the users as well as members.

What is change?

  • We are planning to migrate to /users API instead of using /members.

  • So we will be fetching users and members based on query.

  • /users/?role=member&include=true to get the members.

  • /users/?role=member&include=false to get the users (not member).

  • we can also filter out multiple roles to get the data of members.

  • /users/?role=member&role=designer&include=true this will give us the users who have member or designer role true.

  • /users/?role=member&role=designer&include=false this will give us the users whos member or maven role is false or they don't have member or designer role .

migrateToUsers (3)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.