Skip to content

Need to add associated actors in ThreatActor #110

Closed

Description

@rpiazza
No description provided.

Activity

  1. changed the title [-]Need to add associated actors in ThreadActor[/-] [+]Need to add associated actors in ThreatActor[/+] on Apr 10, 2014
  2. rpiazza commented on Apr 16, 2014

    @rpiazza
    Author

    I think the issue is that there is no method to add an associated actor. You can have more than 1, so usually there is an add... method in the API in that case. I could always just append, but I thought that wasn't the paradigm.

  3. bworrell commented on Apr 17, 2014

    @bworrell
    Contributor

    A while back, @gtback introduced a couple of base classes that GREATLY help in reducing the amount of code we need to write for STIX fields that have a multiplicity > 1 (i.e., lists).

    However, this introduced a new pattern that deviated from the way that we had interacted with these lists in the past. Instead of something.add_foo(bar) calls, you do something.foo.append(bar). Well, we could always do the something.foo.append(bar), but now it is forced since we don't have the associated add_foo() method.

    I'd like to go back through the codebase and add the def add_foo(...) methods to our classes where they are missing, just for consistency. This way, developers will be able to interact with these lists directly via the property or via the method.

  4. rpiazza commented on Apr 17, 2014

    @rpiazza
    Author

    So - for the near future, I should just use the append pattern?

  5. bworrell commented on Apr 17, 2014

    @bworrell
    Contributor

    @rpiazza - Yup!

  6. gtback commented on Apr 17, 2014

    @gtback
    Contributor

    +1 for append() 😄

  7. bworrell commented on May 2, 2014

    @bworrell
    Contributor

    I am going to close this out since we have a way of adding associated threat actors. Issue #117 refrs to the add_foo() pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions