Skip to content

Client-side only enforcement of textMaxLength#2348

Merged
blizzz merged 4 commits into
mainfrom
fix/1360-textmaxlength-enforcement
Mar 3, 2026
Merged

Client-side only enforcement of textMaxLength#2348
blizzz merged 4 commits into
mainfrom
fix/1360-textmaxlength-enforcement

Conversation

@samin-z

@samin-z samin-z commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Backend enforcement of textMaxLength, Min and Max values for table cells.

@samin-z samin-z requested review from blizzz and enjeck as code owners March 2, 2026 15:13
@samin-z samin-z added the 3. to review Waiting for reviews label Mar 2, 2026
@samin-z

samin-z commented Mar 2, 2026

Copy link
Copy Markdown
Contributor Author

/backport! to stable1.0

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label Mar 2, 2026
@backportbot backportbot Bot removed the backport-request Pending backport by the backport-bot label Mar 2, 2026
@samin-z samin-z changed the title #1360: Client-side only enforcement of textMaxLength Client-side only enforcement of textMaxLength Mar 2, 2026
samin-z added 2 commits March 3, 2026 04:46
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
@enjeck enjeck force-pushed the fix/1360-textmaxlength-enforcement branch from 98dcf04 to c5bbda0 Compare March 3, 2026 04:46

@enjeck enjeck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have a concern

Comment thread lib/Service/RowService.php Outdated
}

foreach ($data as $entry) {
$column = $columnsById[$entry['columnId']];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What if it's an invalid columnId? Then $columnsById[$entry['columnId']] won't exist and $column null? Which breaks validateColumnValueLimits()?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe moving validateColumnValueLimits() into cleanupAndValidateData() is more robust

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@enjeck good point, cleaned up unnecessary checks.

samin-z added 2 commits March 3, 2026 10:19
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
@samin-z samin-z requested a review from enjeck March 3, 2026 09:26
@blizzz blizzz merged commit ac7b662 into main Mar 3, 2026
62 of 63 checks passed
@blizzz blizzz deleted the fix/1360-textmaxlength-enforcement branch March 3, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants