Skip to content

Remove dependency on %Studio.SourceControl.Change - #996

Draft
isc-pbarton wants to merge 8 commits into
mainfrom
worktree-de-ccr
Draft

Remove dependency on %Studio.SourceControl.Change#996
isc-pbarton wants to merge 8 commits into
mainfrom
worktree-de-ccr

Conversation

@isc-pbarton

Copy link
Copy Markdown
Collaborator

Description

Resolves #989

  • Link the issue using the magic closing words.
  • Provide a summary of the change and how it addresses the issue (e.g. if it is a bug, explain the root cause of the bug and how this change fixes it).
  • Include any other necessary context, especially if any section warrants special reviewer attention.

Testing

How has this change been tested? Have you added unit or integration tests as appropriate?

Checklist

  • This branch has the latest changes from the main branch rebased or merged.
  • Web UI has been built (any changes in git-webui/src have matching changes in git-webui/release)
  • CHANGELOG.md entry added if appropriate.
  • Documentation has been/will be updated

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.08%. Comparing base (51da6a8) to head (9acfa1d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #996      +/-   ##
==========================================
- Coverage   49.41%   49.08%   -0.33%     
==========================================
  Files          22       21       -1     
  Lines        3337     3229     -108     
==========================================
- Hits         1649     1585      -64     
+ Misses       1688     1644      -44     

☔ 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.

Property ActivelyCommitted As %Boolean [ InitialExpression = 0 ];

/// CCR associated with this change when it was created (optional)
Property CCR As %String;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

take the opportunity to prune fields we don't need, like CCR

quit sc
}

/// Returns the uncommitted change object for <var>Filename</var>, or "" if it is not in the queue

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

i want to be further convinced that these methods were directly copied from %Studio.SourceControl.Change rather than hallucinated. write a utility that copy/pastes them from %Studio source, then diff. or merge from oddDEF like a true ObjectScript geek.

ClassMethod GetUserProductionChanges(productionName As %String, ByRef items)
{
set sql = "SELECT InternalName, Action FROM %Studio_SourceControl.Change WHERE ChangedBy = ? AND Committed = 0 AND InternalName %STARTSWITH ?"
set sql = "SELECT InternalName, Action FROM SourceControl_Git.Change WHERE ChangedBy = ? AND Committed = 0 AND InternalName %STARTSWITH ?"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

do we need to change SQL permissions documented required? that would probably have to be a major version upgrade.

Comment thread CHANGELOG.md
## [Unreleased]

### Changed
- `SourceControl.Git.Change` no longer extends `%Studio.SourceControl.Change`, which is being removed from IRIS Product in 2026.3 and shipped only with CCR (#989). Existing change data is unaffected; no upgrade action is required.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

way too wordy. we don't need to document changes to method definitions unless they are in SourceControl.Git.API. (someday we should prob mark everything else as internal or private or whatev it is). also: don't need to mention version cutoff

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.

Remove Dependency on %Studio.SourceControl.Change

2 participants