-
Notifications
You must be signed in to change notification settings - Fork 928
Review from Tom #8983
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
Open
tom-andersen
wants to merge
7
commits into
feat/pipelines
Choose a base branch
from
tomandersen/pipelines-review
base: feat/pipelines
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Review from Tom #8983
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -698,7 +698,8 @@ export abstract class Expr implements ProtoValueSerializable, UserData { | |
} | ||
|
||
/** | ||
* Creates an expression that checks if a field exists in the document. | ||
* Creates an expression that checks if this expression evaluates to a name of | ||
* the field that exists. | ||
* | ||
* ```typescript | ||
* // Check if the document has a field named "phoneNumber" | ||
|
@@ -3139,7 +3140,7 @@ export function isAbsent(value: Expr | string): BooleanExpr { | |
/** | ||
* @beta | ||
* | ||
* Creates an expression that checks if an expression evaluates to 'NaN' (Not a Number). | ||
* Creates an expression that checks if tbe result of an expression is null. | ||
* | ||
* ```typescript | ||
* // Check if the result of a calculation is NaN | ||
|
@@ -3154,7 +3155,7 @@ export function isNull(value: Expr): BooleanExpr; | |
/** | ||
* @beta | ||
* | ||
* Creates an expression that checks if a field's value evaluates to 'NaN' (Not a Number). | ||
* Creates an expression that checks if tbe value of a field is null. | ||
* | ||
* ```typescript | ||
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. The example needs to be fixed |
||
* // Check if the result of a calculation is NaN | ||
|
@@ -4664,7 +4665,7 @@ export function eqAny( | |
* | ||
* @param fieldName The field to compare. | ||
* @param arrayExpression An expression that evaluates to an array, whose elements to check for equality to the input field. | ||
* @return A new {@code Expr} representing the 'IN' comparison. | ||
* @return A new {@code BooleanExpr} representing the 'IN' comparison. | ||
*/ | ||
export function eqAny(fieldName: string, arrayExpression: Expr): BooleanExpr; | ||
export function eqAny( | ||
|
@@ -4678,7 +4679,7 @@ export function eqAny( | |
/** | ||
* @beta | ||
* | ||
* Creates an expression that checks if an expression is not equal to any of the provided values | ||
* Creates an expression that checks if an expression is not equal to all the provided values | ||
* or expressions. | ||
* | ||
* ```typescript | ||
|
@@ -4688,7 +4689,7 @@ export function eqAny( | |
* | ||
* @param element The expression to compare. | ||
* @param values The values to check against. | ||
* @return A new {@code Expr} representing the 'NOT IN' comparison. | ||
* @return A new {@code BooleanExpr} representing the 'NOT IN' comparison. | ||
*/ | ||
export function notEqAny( | ||
element: Expr, | ||
|
@@ -4698,7 +4699,7 @@ export function notEqAny( | |
/** | ||
* @beta | ||
* | ||
* Creates an expression that checks if a field's value is not equal to any of the provided values | ||
* Creates an expression that checks if a field's value is not equal to all the provided values | ||
* or expressions. | ||
* | ||
* ```typescript | ||
|
@@ -4708,7 +4709,7 @@ export function notEqAny( | |
* | ||
* @param fieldName The field name to compare. | ||
* @param values The values to check against. | ||
* @return A new {@code Expr} representing the 'NOT IN' comparison. | ||
* @return A new {@code BooleanExpr} representing the 'NOT IN' comparison. | ||
*/ | ||
export function notEqAny( | ||
fieldName: string, | ||
|
@@ -4718,7 +4719,7 @@ export function notEqAny( | |
/** | ||
* @beta | ||
* | ||
* Creates an expression that checks if an expression is not equal to any of the provided values | ||
* Creates an expression that checks if an expression is not equal to all the provided values | ||
* or expressions. | ||
* | ||
* ```typescript | ||
|
@@ -4728,14 +4729,14 @@ export function notEqAny( | |
* | ||
* @param element The expression to compare. | ||
* @param arrayExpression The values to check against. | ||
* @return A new {@code Expr} representing the 'NOT IN' comparison. | ||
* @return A new {@code BooleanExpr} representing the 'NOT IN' comparison. | ||
*/ | ||
export function notEqAny(element: Expr, arrayExpression: Expr): BooleanExpr; | ||
|
||
/** | ||
* @beta | ||
* | ||
* Creates an expression that checks if a field's value is not equal to any of the values in the evaluated expression. | ||
* Creates an expression that checks if a field's value is not equal to all the values in the evaluated expression. | ||
* | ||
* ```typescript | ||
* // Check if the 'status' field is not equal to any value in the field 'rejectedStatuses' | ||
|
@@ -4744,7 +4745,7 @@ export function notEqAny(element: Expr, arrayExpression: Expr): BooleanExpr; | |
* | ||
* @param fieldName The field name to compare. | ||
* @param arrayExpression The values to check against. | ||
* @return A new {@code Expr} representing the 'NOT IN' comparison. | ||
* @return A new {@code BooleanExpr} representing the 'NOT IN' comparison. | ||
*/ | ||
export function notEqAny(fieldName: string, arrayExpression: Expr): BooleanExpr; | ||
|
||
|
@@ -4773,7 +4774,7 @@ export function notEqAny( | |
* @param first The first condition. | ||
* @param second The second condition. | ||
* @param additionalConditions Additional conditions to 'XOR' together. | ||
* @return A new {@code Expr} representing the logical 'XOR' operation. | ||
* @return A new {@code BooleanExpr} representing the logical 'XOR' operation. | ||
*/ | ||
export function xor( | ||
first: BooleanExpr, | ||
|
@@ -4951,7 +4952,7 @@ export function logicalMinimum( | |
* ``` | ||
* | ||
* @param value An expression evaluates to the name of the field to check. | ||
* @return A new {@code Expr} representing the 'exists' check. | ||
* @return A new {@code BooleanExpr} representing the 'exists' check. | ||
*/ | ||
export function exists(value: Expr): BooleanExpr; | ||
|
||
|
@@ -4966,7 +4967,7 @@ export function exists(value: Expr): BooleanExpr; | |
* ``` | ||
* | ||
* @param fieldName The field name to check. | ||
* @return A new {@code Expr} representing the 'exists' check. | ||
* @return A new {@code BooleanExpr} representing the 'exists' check. | ||
*/ | ||
export function exists(fieldName: string): BooleanExpr; | ||
export function exists(valueOrField: Expr | string): BooleanExpr { | ||
|
@@ -4984,7 +4985,7 @@ export function exists(valueOrField: Expr | string): BooleanExpr { | |
* ``` | ||
* | ||
* @param value The expression to check. | ||
* @return A new {@code Expr} representing the 'isNaN' check. | ||
* @return A new {@code BooleanExpr} representing the 'isNaN' check. | ||
*/ | ||
export function isNan(value: Expr): BooleanExpr; | ||
|
||
|
@@ -4999,7 +5000,7 @@ export function isNan(value: Expr): BooleanExpr; | |
* ``` | ||
* | ||
* @param fieldName The name of the field to check. | ||
* @return A new {@code Expr} representing the 'isNaN' check. | ||
* @return A new {@code BooleanExpr} representing the 'isNaN' check. | ||
*/ | ||
export function isNan(fieldName: string): BooleanExpr; | ||
export function isNan(value: Expr | string): BooleanExpr { | ||
|
@@ -5017,7 +5018,7 @@ export function isNan(value: Expr | string): BooleanExpr { | |
* ``` | ||
* | ||
* @param stringExpression An expression evaluating to a string value, which will be reversed. | ||
* @return A new {@code Expr} representing the reversed string. | ||
* @return A new {@code BooleanExpr} representing the reversed string. | ||
*/ | ||
export function reverse(stringExpression: Expr): FunctionExpr; | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The example needs to be fixed