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

External mentee visibility policy #625

Open
wants to merge 26 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
371d125
removed 10mins delete restrictions
nevil-mathew Feb 20, 2024
aaf6fb7
Merge pull request #614 from ELEVATE-Project/delete-restrictions
rakeshSgr Feb 20, 2024
647200b
mentee list org policy issue
adithyadinesh0412 Feb 20, 2024
b4431a9
Merge pull request #616 from adithyadinesh0412/notify-user-in-sessions
rakeshSgr Feb 20, 2024
b7a0456
mentee list org policy issue
adithyadinesh0412 Feb 20, 2024
4a2aac7
Merge pull request #618 from adithyadinesh0412/notify-user-in-sessions
rakeshSgr Feb 20, 2024
b7511f2
new migrations added
Prajwal17Tunerlabs Feb 21, 2024
e234159
added 2 new columns
Prajwal17Tunerlabs Feb 21, 2024
7816a4f
Revert "new migrations added"
Prajwal17Tunerlabs Feb 21, 2024
a107788
Revert "added 2 new columns"
Prajwal17Tunerlabs Feb 21, 2024
f7ccf50
added new migrations
Prajwal17Tunerlabs Feb 21, 2024
3d6054a
filter list policy update
adithyadinesh0412 Feb 21, 2024
bf03186
Merge pull request #620 from adithyadinesh0412/notify-user-in-sessions
rakeshSgr Feb 21, 2024
da533c2
Frontend requested form changes
adithyadinesh0412 Feb 21, 2024
58471c2
Merge pull request #621 from adithyadinesh0412/notify-user-in-sessions
rakeshSgr Feb 21, 2024
e008854
added input validation for mentor profile update
nevil-mathew Feb 21, 2024
38e8b90
updated mentee response message
nevil-mathew Feb 21, 2024
dfc0d6a
Merge pull request #622 from ELEVATE-Project/req-body-validation
joffinjoy Feb 21, 2024
2b5b99f
made [org-admin/setOrgPolicies & profile/create] API changes
Prajwal17Tunerlabs Feb 22, 2024
01e2bca
Merge branch 'develop' of github.com:ELEVATE-Project/mentoring into e…
Prajwal17Tunerlabs Feb 22, 2024
3bda094
changes in [profile/filterList] API
Prajwal17Tunerlabs Feb 27, 2024
584f72a
changes in [mentees/list] API
Prajwal17Tunerlabs Feb 27, 2024
a44bd36
changes in [org-admin/roleChange] API
Prajwal17Tunerlabs Feb 27, 2024
b9941d1
changes in [sessions/update] API
Prajwal17Tunerlabs Feb 27, 2024
53cea65
visibility policy changes
Prajwal17Tunerlabs Feb 27, 2024
4b78037
Merge branch 'develop' of github.com:ELEVATE-Project/mentoring into e…
Prajwal17Tunerlabs Feb 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/constants/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ module.exports = {
DEFAULT_ORGANISATION_POLICY: {
session_visibility_policy: 'CURRENT',
mentor_visibility_policy: 'CURRENT',
mentee_visibility_policy: 'CURRENT',
external_session_visibility_policy: 'CURRENT',
external_mentor_visibility_policy: 'CURRENT',
external_mentee_visibility_policy: 'CURRENT',
allow_mentor_override: false,
approval_required_for: [],
},
Expand Down
1 change: 1 addition & 0 deletions src/controllers/v1/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ module.exports = class Mentees {
try {
const filterList = await menteesService.getFilterList(
req.query.entity_types ? req.query.entity_types : '',
req.query.filter_type ? req.query.filter_type : '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not come in your PR.
Please fetch the latest pull and correct this

req.decodedToken
)
return filterList
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
'use strict'

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('organization_extension', 'mentee_visibility_policy', {
type: Sequelize.STRING,
defaultValue: 'CURRENT',
})

await queryInterface.addColumn('organization_extension', 'external_mentee_visibility_policy', {
type: Sequelize.STRING,
defaultValue: 'CURRENT',
})

await queryInterface.addColumn('user_extensions', 'external_mentee_visibility', {
type: Sequelize.STRING,
defaultValue: 'CURRENT',
})

await queryInterface.addColumn('mentor_extensions', 'external_mentee_visibility', {
type: Sequelize.STRING,
defaultValue: 'CURRENT',
})
},

async down(queryInterface, Sequelize) {
await queryInterface.removeColumn('organization_extension', 'mentee_visibility_policy')
await queryInterface.removeColumn('organization_extension', 'external_mentee_visibility_policy')
await queryInterface.removeColumn('user_extensions', 'external_mentee_visibility')
await queryInterface.removeColumn('mentor_extensions', 'external_mentee_visibility')
},
}
Loading