-
Notifications
You must be signed in to change notification settings - Fork 40
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
Adding questionnaire activity types #25
base: master
Are you sure you want to change the base?
Conversation
This is pretty rough, but it doesn't change existing functionality, and every path I tried functioned correctly. Future changes will evolve the types of answers beyond yes/no, and build a template creation UI, so that you aren't forced to use the JSON. The questions in my screenshot were taken from GoSDL, which uses the same format, except I have added a |
I'm also hoping to fold the ASVS checks into this so that the checklist can have an "output" which can be surfaced in the UI. |
- Added migration - Added questionare data to activity admin - Fixed version problems (will need to update in future)
Hey @xenph, I really like this idea but don't have a valid SDL doc to use as a template. Is there a formal specification for these? What JSON docs have you been using? In my limited research, I found https://github.com/slackhq/goSDL/tree/master/www/sdl/modules. At first glance, it seems like the format differs a bit between the documents. |
Notes for myself:
|
I used: https://github.com/slackhq/goSDL/blob/master/www/sdl/modules/general.json for testing, with the small addition of a "answer" field, here is exactly what I used:
Of this object, I only look at the questions and answers field right now, the plan would be to grow to include other features, such as question types, and gaining a result from the answers (risk, pass/fail, or similar) |
@xenph I did some prototyping for a gosdl class representing the modules. I was thinking this could be the basis of a custom renderer so javascript wouldn't be needed to display and update the values. I was trying to go off the spec as defined in that repository. What are your thoughts on this approach? Am I correct that this specification is custom to the security team at slackhq? Is anyone else using it? |
I think this approach is much better than my very lazy informal approach. Yes, the schema is specific to the slack SDL tool, I don't know of anyone else using it. I think building an independent library is the right approach, as the schema supports a lot more than I was using it for originally. |
I have added the ability to create activity types with checklists. The checklist template is saved on the activity_type model, and then copied to the activity model on creation.
Currently, the template is JSON in the following format;
Which will create the following look on the activity detail view.
Answers are saved using the save button.