Skip to content

fix(IncrementalLoad): Do not attempt to delete files not in the datase#931

Open
cambot wants to merge 2 commits intointersystems:mainfrom
cambot:bugfix/onpull-subscript-error
Open

fix(IncrementalLoad): Do not attempt to delete files not in the datase#931
cambot wants to merge 2 commits intointersystems:mainfrom
cambot:bugfix/onpull-subscript-error

Conversation

@cambot
Copy link
Contributor

@cambot cambot commented Feb 18, 2026

Fixes #928: the Incremental Load pull handler so that when applying commits results in deleting a file not managed by embedded-git-config.json, do not crash with a <SUBSCRIPT> error.

Test Plan

Examples of files you might have in your repository that embedded git won't sync into Iris:

  • readme/markdown files
  • git special files (Message templates, .gitignore, etc..)
  • CICD config/support files
  • sample/seed data files

The easiest way to reproduce this issue is to create a branch that adds (commits) one or more of these files, then change branches to/from this branch. (no need to merge into the main branch.)

You could also push this branch to a remote, reset your local to before this branch, then "Pull changes", but it's the same mechanism under the hood as "Check out branch"

Copy link
Collaborator

@isc-pbarton isc-pbarton left a comment

Choose a reason for hiding this comment

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

One nitpick here, otherwise looks great

#; Deleted production items will not have an internal name
set delIndex = $select(##class(SourceControl.Git.Util.Production).ItemIsPTD(tExternalName): 1, 1: 2)
if ((delIndex = 2) && (internalName = "")) {
write !, tExternalName, "was not in the database. Nothing to delete."
Copy link
Collaborator

Choose a reason for hiding this comment

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

tiny formatting nitpick, we'll want a space here

Suggested change
write !, tExternalName, "was not in the database. Nothing to delete."
write !, tExternalName, " was not in the database. Nothing to delete."

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.

<SUBSCRIPT> error in IncrementalLoad pull handler.

2 participants

Comments