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 free-form text to qube for notes, comments, ... #334

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alimirjamali
Copy link
Contributor

qubesadmin part of adding free-form text to each qube for comments, notes, descriptions, remarks, reminders, etc.

fixes: QubesOS/qubes-issues#899

@alimirjamali alimirjamali marked this pull request as draft February 16, 2025 17:11
Copy link

codecov bot commented Feb 16, 2025

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 75.21%. Comparing base (581531c) to head (fa3aa90).

Files with missing lines Patch % Lines
qubesadmin/vm/__init__.py 25.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #334      +/-   ##
==========================================
- Coverage   75.26%   75.21%   -0.05%     
==========================================
  Files          52       52              
  Lines        8975     8983       +8     
==========================================
+ Hits         6755     6757       +2     
- Misses       2220     2226       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alimirjamali alimirjamali force-pushed the issue-899 branch 2 times, most recently from fa3aa90 to dbce8cc Compare February 17, 2025 09:03
qubesadmin part of adding free-form text to each qube for comments,
notes, descriptions, remarks, reminders, etc.

fixes: QubesOS/qubes-issues#899
''' Get qube notes '''
try:
response = self.qubesd_call(self._method_dest, 'admin.vm.notes.Get')
except Exception as exc:
Copy link
Member

Choose a reason for hiding this comment

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

This is definitely too broad. If anything, maybe just qubesadmin.exc.QubesDaemonNoResponseError, but even that I'm not sure. qubesd should return already correct exception on error.

try:
self.qubesd_call(self._method_dest, 'admin.vm.notes.Set', \
payload = str(notes).encode('ascii'))
except Exception as exc:
Copy link
Member

Choose a reason for hiding this comment

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

and same here

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.

Allow users to add free-form text to qubes (for descriptions, notes, comments, remarks, reminders, etc.)
2 participants