lib/eco/api/session/config.rb in eco-helpers-2.7.4 vs lib/eco/api/session/config.rb in eco-helpers-2.7.12

- old
+ new

@@ -246,22 +246,29 @@ # 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. + # @param [recache] used for re-caching # @return [Eco::API::Organization::TagTree] - def tagtree(enviro: nil, include_archived: false, raise_on_missing: true) + def tagtree( + include_archived: false, + recache: false, + raise_on_missing: true + ) kargs = { - enviro: enviro, include_archived: include_archived, raise_on_missing: raise_on_missing + recache: recache, + 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] - def live_tree(id: nil, enviro: nil, **kargs, &block) - tagtree_config.live_tree(id: id, enviro: enviro, **kargs, &block) + def live_tree(id: nil, **kargs, &block) + tagtree_config.live_tree(id: id, **kargs, &block) end # Retrieves all the location structures of the organisation # @param include_archived [Boolean] whether or not to include archived **nodes** # @return [Array<Eco::API::Organization::TagTree>]