Coder Social home page Coder Social logo

Comments (5)

Ephigenia avatar Ephigenia commented on May 22, 2024

I was thinking about adding "current" as the default value for the "user_id" parameter of mite list.

For the use cases, I could think of, it seems to be okay that the user_id option is not used by default and also doesn’t have a default value.

When the API key belongs to an admin or owner of the account you’ll always see all user’s time entries unless you specify the user_id option and set it to "current" or a CSV list of user ids: mite list --user_id=current which returns only your entries or mite list --user_id=83718,12737 which returns entries of a these users.

When your API key belongs to a time-tracking account you will only get your time entries.

What do you think?

from mite-cli.

yolk avatar yolk commented on May 22, 2024

Thanks for your reply. I guess it boils down to the use cases you have in mind.

If you regard the mite list output as something like the reports section in mite your option seems valid. But if you look at it more like the daily time entries view, I guess it should default to only the entries of the current user, regardless of the role of the current user.

But these are only my two cents ;)

from mite-cli.

yolk avatar yolk commented on May 22, 2024

Oh, I forgot my best argument :)

At the moment there is no column mentioning the user name when running mite list; so there is no way I could distinguish my entries from the ones made by my colleagues.

from mite-cli.

Ephigenia avatar Ephigenia commented on May 22, 2024

At the moment there is no column mentioning the user name when running mite list; so there is no way I could distinguish my entries from the ones made by my colleagues.

Yes, you’re right. I’ll add the user column to the reported table then … #4

from mite-cli.

Ephigenia avatar Ephigenia commented on May 22, 2024

I’m closing this issue now. I guess there are some people who would like to have mite list show only their entries but also some who which to see them all. As there‘s no clean way to set a default and be able to unset it on demand I think the people who wish to see only their entries can create an alias which always calls mite list --user_id=current.

As far as there are no other users mentioning this I’ll keep it like it is.

from mite-cli.

Related Issues (20)

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.