Skip to content

Conversation

@marcel-ouska2
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Dec 18, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ klajmajk
✅ alisku
❌ marcel-ouska2
You have signed the CLA already but the status is still pending? Let us recheck it.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @marcel-ouska2, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly expands the OpenAPI specification by introducing a suite of new endpoints and enhancing existing ones. The changes aim to provide more granular control and visibility over decision instances, process definitions, jobs, and incidents, along with improved capabilities for managing process instance variables. The updates also enrich the data models with additional descriptive and state-related fields, facilitating more comprehensive data retrieval and management.

Highlights

  • New Decision Instance Endpoints: Introduced new API endpoints for listing all decision instances (/decision-instances) and retrieving details for a specific decision instance (/decision-instances/{decisionInstanceKey}).
  • Enhanced Process Definition Endpoints: Added new endpoints for retrieving process definition statistics (/process-definitions/statistics) and activity-specific instance counts (/process-definitions/{processDefinitionKey}/activity-counts).
  • Comprehensive Job Management Endpoints: New API endpoints for job management have been added, including retrying a failed job (/jobs/{key}/retry), getting job details (/jobs/{jobKey}), assigning a job (/jobs/{jobKey}/assign), and completing a job (/jobs/{jobKey}/complete).
  • Process Instance Variable Management: Added endpoints to update process instance variables (/process-instances/{processInstanceKey}/variables PUT) and delete a specific variable (/process-instances/{processInstanceKey}/variables/{variableName} DELETE).
  • Global Incident Listing: A new endpoint (/incidents) has been introduced to retrieve a list of incidents across all process instances, with various filtering and sorting options.
  • Expanded Query Parameters and Data Models: Existing endpoints for DMN resource definitions, process definitions, process instances, and jobs have been augmented with additional query parameters for more granular filtering and sorting. Several data models (e.g., DmnResourceDefinition, ProcessDefinition, ProcessInstance, Job, Incident) have been enriched with new fields like names, resource names, states, assignees, and retry counts.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a substantial set of changes to the OpenAPI specification, significantly expanding the API's capabilities. New endpoints have been added for decision instances, process definition statistics, and more detailed job management, which are all valuable additions. The existing endpoints have also been improved with more robust filtering, sorting, and pagination options. Overall, the changes are well-structured and improve the consistency and usability of the API. I've identified a couple of minor inconsistencies that should be addressed to further enhance the API design.

in: query
schema:
type: string
enum: [createdAt, key, errorType]
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The sortBy parameter for GET /incidents includes errorType as a possible value. However, the Incident schema does not contain an errorType field. Sorting by a non-existent field will lead to errors. Please remove errorType from the enum.

            enum: [createdAt, key]

openapi/api.yaml Outdated
Comment on lines 1560 to 1573
/jobs/{key}/retry:
post:
operationId: retryJob
summary: Retry a failed job
tags:
- job
parameters:
- name: key
in: path
required: true
schema:
type: integer
format: int64
example: 4503599627370540
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with other job-related endpoints like GET /jobs/{jobKey} and POST /jobs/{jobKey}/assign, the path parameter for retrying a job should be jobKey instead of key. This improves the predictability and maintainability of the API.

  /jobs/{jobKey}/retry:
    post:
      operationId: retryJob
      summary: Retry a failed job
      tags:
        - job
      parameters:
        - name: jobKey
          in: path
          required: true
          schema:
            type: integer
            format: int64
          example: 4503599627370540

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.

5 participants