lib/eco/api/session/config.rb in eco-helpers-2.5.4 vs lib/eco/api/session/config.rb in eco-helpers-2.5.5
- old
+ new
@@ -233,12 +233,18 @@
def tagtree=(file)
tagtree_config.file = file
end
# It uses the `tagtree.json` file and in its absence, if `graphql` enabled, the largest `life_tagtree`
+ # @note it does NOT include archived nodes by default.
+ # - This is for legacy (most usecases don't)
+ # @param include_archived [Boolean] whether or not it should include archived nodes.
# @return [Eco::API::Organization::TagTree]
- def tagtree(enviro: nil)
- @tagtree ||= tagtree_config.scope_tree(enviro: enviro)
+ def tagtree(enviro: nil, include_archived: false, raise_on_missing: true)
+ kargs = {
+ enviro: enviro, include_archived: include_archived, raise_on_missing: raise_on_missing
+ }
+ @tagtree ||= tagtree_config.scope_tree(**kargs)
end
# It obtains the first of the live tagtree in the org
# @note it requires graphql connection configuration parameters
# @return [Eco::API::Organization::TagTree]