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

server: Add GetSecret, GetSecrets and SetSecret implementation #153

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

warusadura
Copy link
Collaborator

@warusadura warusadura commented Nov 3, 2024

This change adds Secret Service method GetSecrets and Secret Item methods GetSecret and SetSecret.

@warusadura warusadura changed the title wip: do not review server: Add GetSecret wip: do not review : server: Add GetSecret Nov 3, 2024
@warusadura warusadura changed the title wip: do not review : server: Add GetSecret wip: server: Add GetSecret and GetSecrets implementation Nov 4, 2024
server/src/item.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/service_manager.rs Outdated Show resolved Hide resolved
server/src/session.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
@warusadura warusadura changed the title wip: server: Add GetSecret and GetSecrets implementation server: Add GetSecret and GetSecrets implementation Nov 11, 2024
@warusadura warusadura marked this pull request as ready for review November 11, 2024 12:03
server/src/session.rs Outdated Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
server/src/service.rs Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/collection.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/item.rs Outdated Show resolved Hide resolved
server/src/service.rs Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
@warusadura warusadura force-pushed the secret branch 4 times, most recently from 52d38b1 to 65d63ec Compare November 16, 2024 10:13
let mut secrets = HashMap::new();
let collections = self.collections.lock().await;

'outer: for collection in collections.iter() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't the items paths have the collection in their path? so can we use that to figure out the corresponding collections of each item or?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why though :) is it bad practice to use a labeled loop block?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing per see, just trying to understand what is the most efficient way to do all of this.

@warusadura warusadura force-pushed the secret branch 2 times, most recently from 4b46726 to ed96e28 Compare November 17, 2024 17:28
@warusadura warusadura changed the title server: Add GetSecret and GetSecrets implementation server: Add GetSecret, GetSecrets and SetSecret implementation Nov 17, 2024
Copy link
Owner

@bilelmoussaoui bilelmoussaoui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost there

server/src/item.rs Outdated Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
server/src/service.rs Outdated Show resolved Hide resolved
let mut secrets = HashMap::new();
let collections = self.collections.lock().await;

'outer: for collection in collections.iter() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing per see, just trying to understand what is the most efficient way to do all of this.

@bilelmoussaoui
Copy link
Owner

The commit message and it description could use some work, in general. Currently you just duplicate the commit message "title" with the "description". In the description, add any technical information or detail or leave it empty.

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
@bilelmoussaoui bilelmoussaoui merged commit de29404 into bilelmoussaoui:main Nov 18, 2024
7 checks passed
@warusadura warusadura deleted the secret branch November 18, 2024 10:32
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

Successfully merging this pull request may close these issues.

2 participants