{"record":{"id":"c3047cf714d9727e","repo":"theforeman/foreman","slug":"taxonomy-class-name-could-not-be-found-my-name","errorCode":null,"errorMessage":"#{taxonomy_class.name} could not be found my name #{name}.","messagePattern":"#(.+?) could not be found my name #(.+?)\\.","errorType":"validation","errorClass":"GraphQL::ExecutionError","httpStatus":null,"severity":"error","filePath":"app/graphql/resolvers/concerns/collection.rb","lineNumber":123,"sourceCode":"        elsif organization.present?\n          taxonomy_ids << resolve_taxonomy_name_to_id(Organization, organization)\n        end\n\n        taxonomy_ids.uniq\n      end\n\n      def resolve_taxonomy_global_id(taxonomy_class, global_id)\n        taxonomy_name = taxonomy_class.name\n        _, type_name, id = Foreman::GlobalId.decode(global_id)\n\n        raise GraphQL::ExecutionError.new(\"Global ID for #{taxonomy_name} filter is for other graphql type (expected '#{taxonomy_name}', got '#{type_name}')\") unless taxonomy_name == type_name\n\n        id.to_i\n      end\n\n      def resolve_taxonomy_name_to_id(taxonomy_class, taxonomy_name)\n        id = taxonomy_class.find_by(name: taxonomy_name)\n        raise GraphQL::ExecutionError.new(\"#{taxonomy_class.name} could not be found my name #{name}.\") unless id\n        id\n      end\n\n      class_methods do\n        def has_taxonomix?\n          self::MODEL_CLASS.include?(Taxonomix)\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":105,"sourceCodeEnd":135,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/graphql/resolvers/concerns/collection.rb#L105-L135","documentation":"Error \"#{taxonomy_class.name} could not be found my name #{name}.\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/graphql/resolvers/concerns/collection.rb:123 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}