Comments (5)
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.
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.
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.
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.
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)
- Unable to install autocomplete HOT 5
- mite amend edit last created entry by default HOT 1
- Action Required: Fix Renovate Configuration
- table package update throws errors HOT 1
- update to node 14+ (LTS) HOT 1
- refactor: summary row switch HOT 1
- refactor: output options HOT 1
- migrate from table 6.0.x to newer version HOT 3
- setup semantic release
- add release / publish info
- Dependency Dashboard
- The project is still maintained? HOT 2
- The automated release is failing 🚨
- tmux plugin for displaying state HOT 1
- Readme add usage example for tracking management functions HOT 1
- cache for auto-completions
- option for demo-mode HOT 1
- Can't use mite-cli with email address account HOT 8
- Configuration still saved also after uninstall HOT 6
- Support for user/password authentication HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mite-cli.