Open tristanlatr opened 3 years ago
Unify the search() method across list-like objects of the library as described in the 0.3.4 release notes
In order not to change the public API of the DevTree
object, the search()
method could return a Datasource object if there is only one result and a list of Datasources if there are more results.
It will still be confusing because the other objects will always return a list tho...
The thing we should do here is to completely deprecate the use of DevTree
object and create DataSourceManager
, object with same interface BUT it should not overwrite the behaviour of the method search()
.
Of course the DevTree
must stay around a couple of years with a deprecation notice.
Describe The Datasource and DevTree codebase have to be rewritten to:
search()
method across list-like objects of the library as described in the 0.3.4 release notesSIEM and msiempy versions:
Additional context Add any other context about the problem here.