dan-s1 commented on code in PR #10893:
URL: https://github.com/apache/nifi/pull/10893#discussion_r2801492939
##########
nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/flow-designer/service/manager/connection-manager.service.ts:
##########
@@ -595,9 +595,9 @@ export class ConnectionManager implements OnDestroy {
*/
private isExpirationConfigured(connection: any): boolean {
if (connection.flowFileExpiration != null) {
- const match: string[] =
connection.flowFileExpiration.match(/^(\d+).*/);
+ const match: string[] =
connection.flowFileExpiration.match(/^(\d*\.?\d+).*/);
if (match !== null && match.length > 0) {
- if (parseInt(match[0], 10) > 0) {
+ if (parseFloat(match[0]) > 0) {
Review Comment:
@mcgilman I appreciate you giving me the sample unit tests to write. I have
no experience with TypeScript so getting examples of what to write helps a
whole lot. I added one test to in addition to the ones you gave me when the
leading number of the decimal is greater than 0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]