Skip to content

feat: improve jobs list display#9441

Open
pjwerneck wants to merge 4 commits into
devfrom
pjwerneck/improve-job-list-display
Open

feat: improve jobs list display#9441
pjwerneck wants to merge 4 commits into
devfrom
pjwerneck/improve-job-list-display

Conversation

@pjwerneck

Copy link
Copy Markdown
Collaborator

Summary

Improve job list display with a clean summary when accessed in a notebook cell.

Changes

  • Add/modify __str__()_/_repr_html_ methods to JobsList that return a clean summary. __repr__'s current behavior is preserved.

Testing

  • Test cases added to tests/unit/test_datasets_jobs_repr.py
  • Visually confirmed on running notebook

Asana task

https://app.asana.com/1/1185126988600652/project/1210542925864934/task/1214425085848186?focus=true

@pjwerneck pjwerneck changed the title feat: enhance JobsList summary display with detailed job status and tips feat: improve jobs list display Jul 14, 2026
@pjwerneck pjwerneck requested a review from Copilot July 14, 2026 14:39

This comment was marked as outdated.

@pjwerneck pjwerneck force-pushed the pjwerneck/improve-job-list-display branch from e90c3c5 to fef46fb Compare July 14, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (1)

packages/syft-job/src/syft_job/job_repr.py:796

  • The DO-role hint uses job_client.jobs[...] while the other tips in this summary use client.jobs[...]. This inconsistency makes the copy/paste guidance error-prone; please use a single variable name.
        lines.append("")
        lines.append(
            "💡 Use job_client.jobs[0].approve() to approve jobs or job_client.jobs[0].accept_by_depositing_result('file_or_folder') to complete jobs"
        )

Comment thread tests/unit/test_datasets_jobs_repr.py Outdated
Comment thread packages/syft-job/src/syft_job/job.py
Comment thread packages/syft-job/src/syft_job/job_repr.py
Comment thread packages/syft-enclave/src/syft_enclaves/client.py Outdated
- Don't use ty:ignore flags
- Keep root_email arg for backwards compatibility
- Properly escape HTML fields
- Make JobsList.has_do_role public, since enclave.jobs now uses it instead of JobsList. _root_email.
@pjwerneck pjwerneck marked this pull request as ready for review July 14, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants