Setting tags via API

47 views
Skip to first unread message

Warren

unread,
Jun 5, 2012, 5:56:35 PM6/5/12
to checkv...@googlegroups.com
Hello,

I am working on a Chrome extension and am searching for a way to set tags via the API. I have tried appending the tag (e.g. #mytag) to the content, but that doesn't seem to result in a true tag (as it does if you manually append the content with #mytag in the browser). I also tried PUTting the tag object via Javascript (e.g. { task: { tags : { 'mytag' : false } } }; ) with no luck.

Is there currently a way to update tags via the API? If not, is this something you'd consider adding?

Thanks for a great product!

Warren

KIR

unread,
Jun 6, 2012, 3:22:56 AM6/6/12
to checkv...@googlegroups.com
Hello Warren,

  Thanks for your efforts! I'll provide you the details on how to set tags on a task later today, when I'll be near the code :)
  So far, we didn't provide official API for this operation.

  Kind regards,
  KIR


Warren

--
You received this message because you are subscribed to the Google Groups "checkvist-api" group.
To view this discussion on the web visit https://groups.google.com/d/msg/checkvist-api/-/Et3UAVnsFCwJ.
To post to this group, send email to checkv...@googlegroups.com.
To unsubscribe from this group, send email to checkvist-ap...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/checkvist-api?hl=en.



--

Kirill (KIR) Maximov

Software Engineer & Starter


Twitter:       http://twitter.com/maxkir

Google+      http://gplus.to/maxkir

Skype:        maxkir

http://kirblog.idetalk.com | http://checkvist.com | http://www.jetbrains.com/teamcity



Warren

unread,
Jun 6, 2012, 8:51:02 AM6/6/12
to checkv...@googlegroups.com
Thanks KIR. I look forward to insight on updating tags via the API. I would also be curious about the server side of Checkvist. Out of interest, what languages, frameworks and database are you using?

Thanks.

-w-


On Wednesday, June 6, 2012 3:22:56 AM UTC-4, KIR wrote:
Hello Warren,

  Thanks for your efforts! I'll provide you the details on how to set tags on a task later today, when I'll be near the code :)
  So far, we didn't provide official API for this operation.

  Kind regards,
  KIR


On 5 June 2012 23:56, Warren  wrote:
Hello,

I am working on a Chrome extension and am searching for a way to set tags via the API. I have tried appending the tag (e.g. #mytag) to the content, but that doesn't seem to result in a true tag (as it does if you manually append the content with #mytag in the browser). I also tried PUTting the tag object via Javascript (e.g. { task: { tags : { 'mytag' : false } } }; ) with no luck.

Is there currently a way to update tags via the API? If not, is this something you'd consider adding?

Thanks for a great product!

Warren





--

Kirill (KIR) Maximov

KIR

unread,
Jun 6, 2012, 12:44:29 PM6/6/12
to checkv...@googlegroups.com
Hello Warren!

   I've added API to set tags/due when creating/updating a task. So far it is available only on http://beta.checkvist.com (same database as checkvist.com).
   I'm going to update production site with the fix on the weekend. See http://beta.checkvist.com/auth/api for docs, in short, you should set task[tags]=tag1,tag2 to set tags on a task.

   Regarding the server-side - Checkvist is written in Ruby on Rails, uses Mysql as the database. Delayed_job is used for background tasks and Sphinx as the search engine. On the client, Prototype JS library + tons of own code (when we started the project, Prototype was the only library RoR integrated with).

  Kind regards,
  KIR

--
You received this message because you are subscribed to the Google Groups "checkvist-api" group.
To view this discussion on the web visit https://groups.google.com/d/msg/checkvist-api/-/q7kWQRzY_BQJ.

To post to this group, send email to checkv...@googlegroups.com.
To unsubscribe from this group, send email to checkvist-ap...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/checkvist-api?hl=en.

Warren

unread,
Jun 6, 2012, 2:05:44 PM6/6/12
to checkv...@googlegroups.com
That works perfectly. Thanks so much for the speedy update! Always interesting to see what's beneath the hood of a stellar product, as well. I've been a PHP programmer since the late 90s, but just started getting into Ruby (and Rails). Ruby has ruined PHP for me... so much nicer to read and write!

Thanks again.


On Wednesday, June 6, 2012 12:44:29 PM UTC-4, KIR wrote:
Hello Warren!

   I've added API to set tags/due when creating/updating a task. So far it is available only on http://beta.checkvist.com (same database as checkvist.com).
   I'm going to update production site with the fix on the weekend. See http://beta.checkvist.com/auth/api for docs, in short, you should set task[tags]=tag1,tag2 to set tags on a task.

   Regarding the server-side - Checkvist is written in Ruby on Rails, uses Mysql as the database. Delayed_job is used for background tasks and Sphinx as the search engine. On the client, Prototype JS library + tons of own code (when we started the project, Prototype was the only library RoR integrated with).

  Kind regards,
  KIR

To unsubscribe from this group, send email to checkvist-api+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/checkvist-api?hl=en.

KIR

unread,
Jun 6, 2012, 2:44:25 PM6/6/12
to checkv...@googlegroups.com
On 6 June 2012 20:05, Warren <hungr...@gmail.com> wrote:
That works perfectly. Thanks so much for the speedy update! Always interesting to see what's beneath the hood of a stellar product, as well. I've been a PHP programmer since the late 90s, but just started getting into Ruby (and Rails). Ruby has ruined PHP for me... so much nicer to read and write!

   Glad to hear, that it works for you! I would be very interested in results of your coding - as I understand, you're working on this issue:

   In fact, I use the similar scheme to mark task estimates, with tags like #4h, #1d. And still, have to sum them manually when needed :)
   
   Comparing Ruby and PHP - they both great languages. I wrote on PHP in the past as well, but Ruby is much more fun to write on.

   If you have any questions, don't hesitate to ask.

   Kind regards,
   KIR

 
To view this discussion on the web visit https://groups.google.com/d/msg/checkvist-api/-/w31N94zNrh0J.

To post to this group, send email to checkv...@googlegroups.com.
To unsubscribe from this group, send email to checkvist-ap...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/checkvist-api?hl=en.

Warren Harrison

unread,
Jun 6, 2012, 3:07:15 PM6/6/12
to checkv...@googlegroups.com
I will certainly share the plugin once it's in a useable state. I actually started working on this before I saw that user request, but it seems like a worthwhile endeavor, without compromising the simplicity of Checkvist. 

I'll have to make sure I take into account custom tag structures for hours & days. 

My work in progress can be followed here: https://github.com/hungrymedia/checkvist-estimator-chrome-extension

On Wed, Jun 6, 2012 at 2:44 PM, KIR <> wrote:



--
 Warren Harrison                  
 interactive developer                  
                                        
                                        
                                        

KIR

unread,
Jun 7, 2012, 6:46:41 AM6/7/12
to checkv...@googlegroups.com
I will certainly share the plugin once it's in a useable state. I actually started working on this before I saw that user request, but it seems like a worthwhile endeavor, without compromising the simplicity of Checkvist. 

   Looking forward into the results of your endeavor, thanks :)
  

I'll have to make sure I take into account custom tag structures for hours & days. 

   I consider agree

Warren

unread,
Jun 10, 2012, 1:57:53 PM6/10/12
to checkv...@googlegroups.com
I have the estimator extension working well now (https://github.com/hungrymedia/checkvist-estimator-chrome-extension) but have run into an issue passing tags that contain a period (see issue: https://github.com/hungrymedia/checkvist-estimator-chrome-extension/issues/4). This comes into play if you're working with a 12h task and want to generate day tags as well.


Do you have any suggestions for a workaround?

Many thanks.

-w-

KIR

unread,
Jun 10, 2012, 3:34:33 PM6/10/12
to checkv...@googlegroups.com
Hello Warren,

  Unfortunately, Checkvist doesn't allow to create tags with a dot in its name. 
  The only workaround I can suggest so far is to round the resulting value.

  I'm not quite familiar with Chrome extensions, but they should allow to modify the DOM of the current page, 
  so you could show the resulting summary values right on the page, even without callback to the server. 
  This way the calculations won't be persistent, but more accurate.

  I can think of allowing dots in tag names, but it is not an easy task. So I wouldn't promise this fix in the nearest time :(

  Kind regards,
  KIR

--
You received this message because you are subscribed to the Google Groups "checkvist-api" group.
To view this discussion on the web visit https://groups.google.com/d/msg/checkvist-api/-/uYZIqpVP3FUJ.

To post to this group, send email to checkv...@googlegroups.com.
To unsubscribe from this group, send email to checkvist-ap...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/checkvist-api?hl=en.

Warren Harrison

unread,
Jun 10, 2012, 4:56:10 PM6/10/12
to checkv...@googlegroups.com
Hi KIR,

No worries. I'll figure out a workaround. Perhaps I'll use fractions or something.

I started out working just with the DOM, but liked the idea of the tags being updated regardless of whether the extension is installed.

Thanks for your help and responsiveness! Much appreciated.

- Warren
Reply all
Reply to author
Forward
0 new messages