unioslo / unioslo/mreg-cli

Token file should be stored in application data directory

Open
#421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Python
Stars
2
Forks
7
Avg merge
6d 11h
Merged PRs (30d)
2

Description

We currently save the token file outside the standard application directories:

https://github.com/unioslo/mreg-cli/blob/0bceea78e94161a8ee05cb0a521397bdb227d93b/mreg_cli/tokenfile.py#L39

It would be ideal to use a platformdirs directory for this. Defining mreg_cli.dirs.DATA_DIR seems appropriate for this purpose.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with mreg_cli/tokenfile.py at the linked line and inspect how application directories are defined. Check how platformdirs can provide the data directory and whether mreg_cli.dirs.DATA_DIR already exists. Done means the token file is stored in the platform-appropriate application data directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.