-
Notifications
You must be signed in to change notification settings - Fork 175
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
Added levels to DFDs #132
Added levels to DFDs #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should be done by layering multiple models over each other. It would imply that each layer should be a valid model on its own.
Isn't it currently possible to draw the DFD in a way it's missing crucial information to understand the model?
Anyway, this PR is missing tests that would document the use cases for this feature.
Will do!
…On Sun, Oct 18, 2020, 13:32 Jan Waś ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In pytm/pytm.py
<#132 (comment)>:
> @@ -838,6 +862,9 @@ class Element:
doc="Maximum data classification this element can handle.",
)
findings = varFindings([])
+ levels = [
An important rationale is to be consistent with other attributes. Levels
are not special. You could use varData as an example, just with int
instead of Data and a regular set at the end instead of Dataset
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#132 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC2BAPPZ477B7OYGFGXK3DSLMRCHANCNFSM4ST2LMFQ>
.
|
Ah. I think i get what you're saying. Let me rethink it.
…On Sun, Oct 18, 2020, 13:26 Jan Waś ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In pytm/pytm.py
<#132 (comment)>:
> @@ -404,6 +404,18 @@ def _get_elements_and_boundaries(flows):
return (list(elements), list(boundaries))
+def _render_by_level(level):
+ # Level 0 (default) always renders
+ if TM._levels == [0]:
But it's only one level
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#132 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC2BAILJZZP5B5GI5B22EDSLMQNJANCNFSM4ST2LMFQ>
.
|
71f6f2e
to
4af7b79
Compare
@@ -838,6 +862,7 @@ class Element: | |||
doc="Maximum data classification this element can handle.", | |||
) | |||
findings = varFindings([]) | |||
levels = varInts({0}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last request - this needs a doc
, can you add it?
This is and idea to be able to add to the same model, for example, infra-structure and application layers, then select on which diagram to produce. This only impacts DFDs, threat elicitation, sequence diagrams and reporting stay the same.