Skip to content

Conversation

AndreMarcel99
Copy link
Collaborator

@AndreMarcel99 AndreMarcel99 commented Jul 16, 2025

SUMMARY

Change jobs utilities and interfaces for new 2.0 version.

Fixes #2147 and #2149

ISSUE TYPE
  • Enabler Pull Request
COMPONENT NAME

Create a new flag for not found changes as a dictionary values to ensure change is properly returned.

ADDITIONAL INFORMATION

Add validation for all test cases.

Screenshot 2025-07-17 at 2 57 21 p m Screenshot 2025-07-17 at 2 57 30 p m Screenshot 2025-07-17 at 2 57 47 p m

@AndreMarcel99 AndreMarcel99 changed the title Enabler/2147 2149/update job modules interface [Enabler][2147-2149]update_job_modules_interfaces Jul 16, 2025
@AndreMarcel99 AndreMarcel99 marked this pull request as ready for review July 17, 2025 20:46
richp405
richp405 previously approved these changes Jul 21, 2025
Copy link
Collaborator

@richp405 richp405 left a comment

Choose a reason for hiding this comment

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

Minor comment: changelog fragment has ticket 2204 and pull 2204. I'm not sure on ticket number, but the pull request should be 2208.

@@ -1,3 +1,3 @@
breaking_changes:
- zos_job_query - Return value ``message`` is deprecated in favor of ``msg``. Return value ``steps`` are no longer under `` but is now included under jobs.
- zos_job_query - Return value ``message`` is deprecated in favor of ``msg``. Return value ``steps`` are no longer under ``ret_code`` but is now included under jobs.
(https://github.com/ansible-collections/ibm_zos_core/pull/2204).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be ...pull/2208 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is the other changelog, this is form the previous PR of changes of zos_job_query, but I realize I miss one problem

André Marcel Gutiérrez Benítez added 2 commits August 1, 2025 11:57
Copy link
Collaborator

@fernandofloresg fernandofloresg left a comment

Choose a reason for hiding this comment

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

Requested few small changes for the changelog fragment

- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code`
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``.
(https://github.com/ansible-collections/ibm_zos_core/pull/2208).
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``.
- zos_job_submit - Option name ``location`` is replaced for ``remote_src`` and now its behavior is defined by a bool value and ``wait_time_s`` is replaced for ``wait_time``.

but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``.
(https://github.com/ansible-collections/ibm_zos_core/pull/2208).
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``.
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node``
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node``
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replaced by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node``

@AndreMarcel99
Copy link
Collaborator Author

Screenshot 2025-08-01 at 3 07 13 p m Screenshot 2025-08-01 at 3 07 27 p m Screenshot 2025-08-01 at 3 07 55 p m

fernandofloresg
fernandofloresg previously approved these changes Aug 1, 2025
Copy link
Collaborator

@fernandofloresg fernandofloresg left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,13 @@
breaking_changes:
- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code`
- zos_job_output - Option ``ddname`` is substituted for ``dd_name``, but retaining ``ddname`` as an alias. Return field ``changed`` is now always returned, ``steps`` is no longer under `ret_code`

@@ -0,0 +1,13 @@
breaking_changes:
- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code`
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``.
but is now included under `jobs`. Return field ``ddnames`` is replaced by ``dds`` and field ``ddname`` under ``ddnames`` is replaced by ``dd_name``.

- zos_job_output - Interface value ``ddname`` is substitute for ``dd_name``, but ``ddname`` is an alias. Return value ``changed`` is always retun, ``steps`` are no longer under `ret_code`
but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``.
(https://github.com/ansible-collections/ibm_zos_core/pull/2208).
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``.
- zos_job_submit - Option ``location`` is replaced for ``remote_src``, a boolean value and ``wait_time_s`` is replaced for ``wait_time``.

but is now included under `jobs`. Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``.
(https://github.com/ansible-collections/ibm_zos_core/pull/2208).
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``.
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node``
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node``
Return field ``ddnames`` is replaced by ``dds`` and field ``ddname`` under ``ddnames`` is replaced by ``dd_name``. Return fields ``system``, ``subsystem``, ``cpu_time``, ``execution_node``

(https://github.com/ansible-collections/ibm_zos_core/pull/2208).
- zos_job_submit - Interface value ``location`` is replace for ``remote_src`` in a bool value and ``wait_time_s`` ir replace for ``wait_time``.
Return value ``ddnames`` replaced by ``dds`` and value ``ddname`` under ``ddnames`` is replace by ``dd_name``. Return values ``system``, ``subsystem``, ``cpu_time``, ``execution_node``
and ``origin node`` is no longer returned. Now all values are retuned under jobs exception for changed.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
and ``origin node`` is no longer returned. Now all values are retuned under jobs exception for changed.
and ``origin node`` are no longer returned. Every other field is now always returned under ``jobs``.

richp405
richp405 previously approved these changes Aug 4, 2025
fernandofloresg
fernandofloresg previously approved these changes Aug 4, 2025
Copy link
Collaborator

@fernandofloresg fernandofloresg left a comment

Choose a reason for hiding this comment

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

LGTM!

@AndreMarcel99 AndreMarcel99 dismissed stale reviews from fernandofloresg and richp405 via 0b07a67 August 4, 2025 21:00
@AndreMarcel99 AndreMarcel99 requested a review from rexemin August 4, 2025 21:00
Copy link
Collaborator

@fernandofloresg fernandofloresg left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for updating this

@fernandofloresg fernandofloresg merged commit 3e7ec31 into dev Aug 5, 2025
5 checks passed
@fernandofloresg fernandofloresg deleted the enabler/2147-2149/update_job_modules_interface branch August 5, 2025 16:05
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.

[Enabler] Update zos_job_output module interface
4 participants