Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

Why are QueueID, StateID, PriorityID and TypeID blacklisted? #4

@3limin4t0r

Description

@3limin4t0r

I'd like to use QueueID attribute for setting the queue. When I tried this I got back the error:

Exception occurred: Please use Queue instead of QueueID

This seems to be blocked by ottick in the lines:

ottick/lib/ottick/ticket.rb

Lines 296 to 309 in 1a16ddb

def sanitize_ticket_opts!(opts)
if opts.has_key?("QueueID")
raise RuntimeError, "Please use Queue instead of QueueID"
end
if opts.has_key?("StateID")
raise RuntimeError, "Please use State instead of StateID"
end
if opts.has_key?("PriorityID")
raise RuntimeError, "Please use Priority instead of PriorityID"
end
if opts.has_key?("TypeID")
raise RuntimeError, "Please use Type instead of TypeID"
end
end

I currently removed the lines in my own fork. However, I was wondering for what reason they where added in the first place. Was this just preference or was there some technical reason?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions