Skip to content

Add update load combination to adapter push#565

Open
Chrisshort92 wants to merge 24 commits intodevelopfrom
Robot_Toolkit-#563-add-update-load-combination-to-adapter-push
Open

Add update load combination to adapter push#565
Chrisshort92 wants to merge 24 commits intodevelopfrom
Robot_Toolkit-#563-add-update-load-combination-to-adapter-push

Conversation

@Chrisshort92
Copy link
Contributor

@Chrisshort92 Chrisshort92 commented Aug 21, 2025

NOTE: Depends on

Issues addressed by this PR

Closes #563

Implements Update functionality for LoadCombinations in Robot_Adapter. The Update method now:

  • Locates existing combinations using the Number property via direct Get() call (following Loadcases pattern)
  • Updates combination names and replaces case factors
  • Validates RobotId/Number consistency and logs errors on mismatch
  • Provides clear warnings when combinations don't exist in Robot

Test files

https://burohappold.sharepoint.com/:f:/r/sites/BHoM/02_Current/12_Scripts/02_Pull%20Request/BHoM/Robot_Toolkit/%23565-add-update-load-combination-to-adapter-push?csf=1&web=1&e=GLPz1q

Changelog

Update functionality for LoadCombinations in Robot_Adapter

Additional comments

Copilot AI and others added 8 commits August 21, 2025 10:46
Co-authored-by: Chrisshort92 <38885832+Chrisshort92@users.noreply.github.com>
Co-authored-by: Chrisshort92 <38885832+Chrisshort92@users.noreply.github.com>
…lete() calls

Co-authored-by: Chrisshort92 <38885832+Chrisshort92@users.noreply.github.com>
…or non-existent combinations

Co-authored-by: Chrisshort92 <38885832+Chrisshort92@users.noreply.github.com>
Co-authored-by: Chrisshort92 <38885832+Chrisshort92@users.noreply.github.com>
Co-authored-by: Chrisshort92 <38885832+Chrisshort92@users.noreply.github.com>
@Chrisshort92 Chrisshort92 requested a review from staintono August 21, 2025 14:26
@Chrisshort92 Chrisshort92 self-assigned this Aug 21, 2025
@Chrisshort92 Chrisshort92 added the type:feature New capability or enhancement label Aug 21, 2025
@Chrisshort92 Chrisshort92 linked an issue Aug 21, 2025 that may be closed by this pull request
staintono
staintono previously approved these changes Aug 21, 2025
Copy link
Contributor

@staintono staintono left a comment

Choose a reason for hiding this comment

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

Tested using the provided test script, load combinations are updated as expected based on the combination number. Error is thrown if combination does not yet exist in the model, as expected.

@peterjamesnugent peterjamesnugent self-requested a review October 22, 2025 16:04
Copy link
Member

@peterjamesnugent peterjamesnugent left a comment

Choose a reason for hiding this comment

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

Can you update the title, folder for the test script and the text for the PR. The body mentions Create methods breaking but does not address it in the PR. Similar for the Fixed Update Method and Technical Improvements, not sure how much it relates to the PR changes. I would keep the change log and description to a minimum for clarity.

I ran the script, but it just tried to update the RobotId for LoadCombination to 100, but it's already set as 100 so it doesn't really test the Update. I tried changing it to 200 and nothing happens:

image

In your script I would also want to a case that updates the factors, a case that updates the Loadcase and a case that tries to update with empty cases (prompting the error).

@staintono
Copy link
Contributor

@copilot update the PR description to summarise the current state of the changes.

Copy link

Copilot AI commented Nov 13, 2025

@staintono I've opened a new pull request, #575, to work on those changes. Once the pull request is ready, I'll request review from you.

@staintono staintono added the AI Assisted Code Co-authored with AI label Nov 13, 2025
@staintono staintono changed the title Robot toolkit #563 add update load combination to adapter push Add update load combination to adapter push Nov 13, 2025
@staintono staintono self-assigned this Nov 13, 2025
Copilot AI and others added 2 commits November 13, 2025 12:32
Co-authored-by: staintono <62057195+staintono@users.noreply.github.com>
@staintono
Copy link
Contributor

Can you update the title, folder for the test script and the text for the PR. The body mentions Create methods breaking but does not address it in the PR. Similar for the Fixed Update Method and Technical Improvements, not sure how much it relates to the PR changes. I would keep the change log and description to a minimum for clarity.

I ran the script, but it just tried to update the RobotId for LoadCombination to 100, but it's already set as 100 so it doesn't really test the Update. I tried changing it to 200 and nothing happens:

image In your script I would also want to a case that updates the factors, a case that updates the `Loadcase` and a case that tries to update with empty cases (prompting the error).

PR Title and Folder have been updated. Updated the code to include errors where the RobotId doesnt equal the Loadcombination Number, it wont update unless they are both the same. Test script has been updated to include updating just factors or load cases.

@staintono staintono marked this pull request as ready for review November 13, 2025 14:04
@staintono
Copy link
Contributor

@BHoMBot Check Compliance

@Chrisshort92
Copy link
Contributor Author

I have just re-tested this functionality and works as expected with the update functions @staintono states above. @peterjamesnugent can you re-review ready for merge?

Copy link
Member

@peterjamesnugent peterjamesnugent left a comment

Choose a reason for hiding this comment

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

Some changes that were not covered in the test scripts, handling of null and where to exit the routine as well as warning and error messaging.

Chrisshort92 and others added 5 commits December 12, 2025 13:35
Co-authored-by: Peter Nugent <Peter.Nugent@burohappold.com>
Co-authored-by: Peter Nugent <Peter.Nugent@burohappold.com>
Co-authored-by: Peter Nugent <Peter.Nugent@burohappold.com>
Co-authored-by: Peter Nugent <Peter.Nugent@burohappold.com>
Co-authored-by: Peter Nugent <Peter.Nugent@burohappold.com>
@Chrisshort92
Copy link
Contributor Author

@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

@Chrisshort92 to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

@Chrisshort92
Copy link
Contributor Author

@BHoMBot check core

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

@Chrisshort92 to confirm, the following actions are now queued:

  • check core

There are 1 requests in the queue ahead of you.

@Chrisshort92
Copy link
Contributor Author

@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

@Chrisshort92 to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

There are 6 requests in the queue ahead of you.

Copy link
Contributor Author

@Chrisshort92 Chrisshort92 left a comment

Choose a reason for hiding this comment

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

All comments now addressed

@Chrisshort92
Copy link
Contributor Author

@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

@Chrisshort92 to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

There are 2 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

The check core has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

The check serialisation has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

The check versioning has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link

bhombot-ci bot commented Dec 12, 2025

The check installer has already been run previously and recorded as a successful check. This check has not been run again at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assisted Code Co-authored with AI type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add update load combination to adapter push

4 participants