Code Monkey home page Code Monkey logo

roblox-trello's People

Contributors

ddavness avatar hyphex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

roblox-trello's Issues

Card:GetComments()

Hello, I'm working on a "Contact Support" feature for my game and I want to use the Trello Card's comments section as a support chat room.

If it's possible to add a function to return a table of Comment objects sorted by time posted that would be insanely useful.

**ADD
I have found that some comments are location inside the actions JSON object, and maybe the function could go through them and get type == "commentCard" then sort by date if it's not already sorted. Hope this helps!

**ADD
While I was working, I got this working. If you like, you can add it into the API. I believe it's already sorted by latest to oldest.

function NewCard:GetActions(filter)
	local JSON
	pcall(function()
		JSON = HTTP:GetAsync("https://api.trello.com/1/cards/"..self:GetId().."/actions"..(filter and "?filter="..filter.."&"..auth:sub(2, #auth) or auth))
	end)
	return (HTTP:JSONDecode(JSON))
end
		
function NewCard:GetComments()
	return self:GetActions("commentCard");
end

Thanks for this API again!

v2 Project: Motivation and path.

v2 Roadmap

The problem

Currently, the code is in spaghetti form, with clear inefficiencies regarding the use of HttpService and a dangerously soft line between fetching data from Trello and sending data to Trello.
Also, there are inconsistencies in argument checking that we need to fix.

In the end, the refactoring that would be required would be too much for a remake to be a valid option

Fundamental principles of v2

  • Git-like approach to the problem that sits in three basic operations:

    • Fetch data from Trello;
    • Make changes locally;
    • Push data to Trello.
  • A caching system in order to support larger-scale games;

  • Gracious error handling for errors that might be out of user control (404's, 429's, 500's);

  • Proper error messages that are easy to understand (I recommend to see this article).

Nice-to-haves:

  • Compatibility with Rojo;
  • For Roblox-TS users: An NPM package will be developed in parallel by me;
  • We will begin also shipping v2 modules in the Roblox Website so that you don't have to snoop in the releases page.
  • ADDED 29TH JULY: Module will be documented with Documentation Reader (by @ProbableAI) styling.

Versioning:

Until a version is stable, we will name dev releases of v2 2.0.0-dev.X

404 Bad Request: invalid value for idList

Found an issue when attempting to create a new card on a list. I tested the POST url with Postman and got this. I was replied from the post request with invalid value for idList so I changed idCard with idList and it worked in Main.lua

return (ConList.Card.new({name = name, idCardidList = parent:GetId()}, ConList["Board"], ConList["List"], ConList["Card"]))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.