Skip to content

Commit 9d53191

Browse files
authored
Merge pull request #4455 from appirio-tech/dev
[PROD] Milestone Management
2 parents ac24c7f + 9cca4dc commit 9d53191

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1263
-350
lines changed

src/api/phaseMembers.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { axiosInstance as axios } from './requestInterceptor'
2+
import { PROJECTS_API_URL } from '../config/constants'
3+
4+
export function updatePhaseMembers(projectId, phaseId, userIds) {
5+
const url = `${PROJECTS_API_URL}/v5/projects/${projectId}/phases/${phaseId}/members`
6+
const data = { userIds }
7+
return axios.post(url, data)
8+
.then(res => res.data)
9+
}

src/api/projects.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ export function getProjectSuggestions() {
3434
// TODO
3535
}
3636

37+
/**
38+
* Get a challenge detail based on it's id
39+
* @param {integer} challenId challenge id
40+
* @return {object} challenge detail returned by api
41+
*/
42+
export function getChallengeById(challengeId) {
43+
return axios.get(`${PROJECTS_API_URL}/v5/challenges/${challengeId}/`)
44+
.then(resp => {
45+
const res = resp.data
46+
return res
47+
})
48+
}
49+
3750

3851
/**
3952
* Get a project based on it's id

src/assets/icons/calendar.svg

Lines changed: 36 additions & 0 deletions
Loading

src/assets/icons/icon-calendar.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

src/assets/icons/icon-copilot.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/icons/icon-delete.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading

src/assets/icons/icon-save2.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/icons/icon-trash2.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)