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

Proposed response structure for plan module #1

Open
BenMaruchu opened this issue Oct 4, 2018 · 0 comments
Open

Proposed response structure for plan module #1

BenMaruchu opened this issue Oct 4, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@BenMaruchu
Copy link
Member

This is the initial proposed structure for plan

{
    plans: {
        data: [{
            incidentType,
            jurisdictions,
            dates,
            activityCount,
            colorCode,
        }],
        meta: {
            total: 0,
            page: 0,
        },
        selectedPlan: ObjectId,
    },
    activities: {
        data: [{
            description,
            dates,
            stakeholders,
            phase,
            taskCount,
            incidentType
        }],
        phases: {
            // phase name and corresponding activity count
            phaseName: activityCount
        }
        meta: {
            total: 0,
            page: 0,
        },
        selectedActivity: ObjectId,
    },
    tasks: {
        data: [{
            description,
            dates,
            stakeholders,
        }],
        meta: {
            total: 0,
            page: 0
        },
    }
}
@lykmapipo lykmapipo self-assigned this Oct 7, 2018
@lykmapipo lykmapipo added the enhancement New feature or request label Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants