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

Profile object needs matches and role #287

Open
branden-jones opened this issue Mar 5, 2023 · 0 comments
Open

Profile object needs matches and role #287

branden-jones opened this issue Mar 5, 2023 · 0 comments

Comments

@branden-jones
Copy link

In order to make fewer endpoint requests, I believe it is imperative to have to more properties within each profile object:

matches: [ profile_id, profile_id, profile_id ], ** and array of profile_ids of matches... not full objects
role: "mentee" || "mentor"

Reason for Matches Array
Without these properties stored within the Profile Object, I will then have to take the profile_id and request from matches/all/obj and then find the profile_id that matches... but even then there are some issues.

Reason for Role:
This makes sorting data immediately easier rather than searching a separate endpoint for the role name. For Example: when we use get all to occupy User Management page, there is a column filtering roles.

From here we can grab other information using other endpoints if the user chooses to progress...

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

1 participant