Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for specifying "default fields" #2

Open
dcastro opened this issue Feb 10, 2022 · 3 comments
Open

Add support for specifying "default fields" #2

dcastro opened this issue Feb 10, 2022 · 3 comments

Comments

@dcastro
Copy link
Member

dcastro commented Feb 10, 2022

In #1, we'll implement a way of retrieving a single field from a single entry.

It would be convenient to not be forced to specify which field we want to retrieve all the time.
In most cases, most entries will have a "default field" that we want to copy (e.g. password or token).

We should let the user specify which field they want to be the default field (in coffer create, via CLI options, via the "editor mode", or via the web API).

Questions to be addressed:

  • What happens when the default field is deleted?
  • How would the user change which field is the default field for a given entry?
@MagicRB
Copy link
Contributor

MagicRB commented Feb 10, 2022

I think we should have a metadata editing command/UI/editor mode, it would allow changing the dateModifeds, private, tags and stuff.

@sancho20021
Copy link
Contributor

We have master-field in entries, that seems to be related with default fields, but I don't understand how it currently works. When I view an entry without specifying the field coffer just shows me the entire entry. Moreover, I assume that the master-field is always set to Nothing.

What is the expected behavior of master-fields?

@dcastro
Copy link
Member Author

dcastro commented May 12, 2022

We have master-field in entries, that seems to be related with default fields

That's correct.

Moreover, I assume that the master-field is always set to Nothing.

Yup, for the time being.

When I view an entry without specifying the field coffer just shows me the entire entry

That's a good point. I agree with the current behaviour, coffer /entry should display the whole entry. I'm not sure what the syntax for displaying the default field should be though.

@MagicRB do you have an opinion on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants