Skip to content

More “ruby-like” API? #263

@moeffju

Description

@moeffju

Thank you for developing ruby-trello. While building a relatively simple app that synchronizes data between trello and an external source bidirectionally, I’ve run into a number of snags due to documentation being very limited, but also because the API in many cases did not “feel” how I expected it to.

For example, it would be nice if I could just card.labels << some_label, or some_list.add_card some_card, pos: 'top' (instead of passing list_id manually). Or even some_list << some_card.

I also ran into some issues where cards would not update despite calling .save and getting a 200 OK response that I haven’t been able to get to the bottom of, as well as unexpected HTTP calls (e.g. when adding a label - the mental model for cards is that local data will be updated and I call .save manually, but .add_label does modify the card directly). It would be helpful if the mental model was consistent, i.e. either all changes are live or all changes are deferred?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions