Skip to content

get_log_messages console REST API function, other enhancements#391

Open
KUGDev wants to merge 3 commits into
zowe:mainfrom
KUGDev:feature/get-log-messages-and-other
Open

get_log_messages console REST API function, other enhancements#391
KUGDev wants to merge 3 commits into
zowe:mainfrom
KUGDev:feature/get-log-messages-and-other

Conversation

@KUGDev

@KUGDev KUGDev commented May 14, 2026

Copy link
Copy Markdown
Contributor

What It Does

Added get_log_messages console REST API function, added exec-data and status query parameters to list_jobs, corrected members parsing, list_members enhancement

How to Test

Use Console.get_log_messages to get messages from SYSLOG/OPERLOG.
Use fetch_exec_data=True flag with Jobs.list_jobs to fetch exec-data with the list of jobs.
User status='ACTIVE' flag with Jobs.list_jobs to fetch jobs that are active at the moment.

Review Checklist
I certify that I have:

Additional Comments

@github-project-automation github-project-automation Bot moved this to New Issues in Zowe CLI Squad May 14, 2026
@zowe-robot zowe-robot moved this from New Issues to Review/QA in Zowe CLI Squad May 14, 2026
@KUGDev KUGDev force-pushed the feature/get-log-messages-and-other branch from 45c9b39 to e521abf Compare May 14, 2026 08:31
… status query parameters to list_jobs, corrected members parsing, list_members enhancement

Signed-off-by: Uladzislau <leksilonchikk@gmail.com>
@KUGDev KUGDev force-pushed the feature/get-log-messages-and-other branch from e521abf to eb3675a Compare May 14, 2026 08:31
@codecov

codecov Bot commented May 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.69663% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.10%. Comparing base (24102f6) to head (1e03394).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
.../zowe/zos_console_for_zowe_sdk/response/console.py 90.76% 6 Missing ⚠️
...s/zowe/zos_files_for_zowe_sdk/response/datasets.py 90.62% 3 Missing ⚠️
src/core/zowe/core_for_zowe_sdk/request_handler.py 77.77% 2 Missing ⚠️
...s_jobs/zowe/zos_jobs_for_zowe_sdk/response/jobs.py 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #391      +/-   ##
==========================================
+ Coverage   82.13%   83.10%   +0.97%     
==========================================
  Files          49       49              
  Lines        2916     3055     +139     
==========================================
+ Hits         2395     2539     +144     
+ Misses        521      516       -5     
Flag Coverage Δ
unittests 83.10% <92.69%> (+0.97%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zFernand0 zFernand0 self-requested a review May 15, 2026 12:34
@JTonda JTonda moved this from Review/QA to Release Backlog in Zowe CLI Squad May 20, 2026
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>

@zFernand0 zFernand0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes are looking good.

I still have to do some more testing, and I may have more comments later on, but so far so good.

I do have a few small requests 🙏

def __init__(self, response: dict[str, Any]) -> None:
for raw_key, value in response.items():
key = to_snake_case(raw_key)
super().__setattr__(key, value)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't we be calling setattr inside the for loop?

Suggested change
super().__setattr__(key, value)
super().__setattr__(key, value)

I could be mistaken, but it seems that only the last property will get set 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, good catch, fixed!


@mock.patch("logging.Logger.error")
@mock.patch("requests.Session.send")
def test_create_data_set_po_empty_dirblk(self, mock_send_request, mock_logger_error: mock.MagicMock):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems to be duplicated down in line 67

Should this one be renamed to test_create_data_set_po_zero_dirblk? (or something similar?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks like I mistakenly copied this one, removed in the latest commit

@github-project-automation github-project-automation Bot moved this from Release Backlog to Review/QA in Zowe CLI Squad Jul 1, 2026
Signed-off-by: Uladzislau <leksilonchikk@gmail.com>
@KUGDev KUGDev requested a review from zFernand0 July 1, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Review/QA

Development

Successfully merging this pull request may close these issues.

4 participants