-
Notifications
You must be signed in to change notification settings - Fork 8
Queue filter #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Queue filter #82
Changes from all commits
9e1edfb
eaf7f11
561806b
b3f7105
45d1c0f
f398c63
04d9624
213e9c0
00339b5
242f384
c71ec39
f77014d
49da591
0fad94d
7c6d9cb
35db6fa
c043cc6
b0340dc
7d6fb96
291ff21
2050600
7df90e4
f3ccdb8
298ca5c
b723293
290c470
69b8c79
1cc7e8e
0ec72a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,7 +149,7 @@ ClassMethod UserInfo() As %SystemBase | |
ClassMethod Uncommitted() As %SystemBase | ||
{ | ||
// Stub | ||
do ##class(Utils).GitStatus(.files) | ||
do ##class(Utils).GitStatus(.files, 1) | ||
set output = "" | ||
set key = "" | ||
|
||
|
@@ -160,13 +160,17 @@ ClassMethod Uncommitted() As %SystemBase | |
quit:key="" | ||
// Check that current user has files(key) uncommitted and only %Push if they do | ||
set filename = ##class(Utils).FullExternalName(key) | ||
set sc=##class(SourceControl.Git.Change).GetUncommitted(filename,.tAction,.tInternalName,.UncommittedUser,.tSource,.UncommittedLastUpdated) | ||
if $$$ISOK(sc) && ($data(tAction)&&(UncommittedUser=$username)) { | ||
if (($ISVALIDNUM(key)) && (files(key) '= "")){ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need to check ISVALIDNUM? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In So in |
||
do array.%Push($listget(fileData,2)) | ||
} | ||
else{ | ||
set sc=##class(SourceControl.Git.Change).GetUncommitted(filename,.tAction,.tInternalName,.UncommittedUser,.tSource,.UncommittedLastUpdated) | ||
if ($$$ISOK(sc)) && ($data(tAction)&&(UncommittedUser=$username)) { | ||
do array.%Push($listget(fileData,2)) | ||
} | ||
} | ||
} | ||
quit array | ||
} | ||
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: full classnames are preferred (though other code in the same neighborhood might not be great about that)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens in multiple places all throughout the project. It might be better to create a separate PR for finding and refactoring all these instances.