Skip to content

Conversation

@SergeyRuzin
Copy link
Contributor

  1. Made log for failed table binding more readable
  2. Added sample feature which does not require deployed demo app
  3. Fixed enabled check inverted log
  4. Changed package-lock dependencies to fix github alerts

public static string GetPrintableValues(this IEnumerable<ITableRowWrapper> rows)
{
return rows.SelectMany(x => x.CellsText).Aggregate((x, y) => $"{x}, {y}");
var values = rows.Aggregate("\r\n|", (current, row) => current + (row.CellsText.Aggregate((x, y) => $" {x} | {y}") + " |\r\n |"));
Copy link
Collaborator

@vladimir-s-quantori vladimir-s-quantori Sep 22, 2021

Choose a reason for hiding this comment

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

Aggregate method doesn't apply to empty or null collections and will throw exception in this case. I guess we should check rows for null/empty and throw a readable exception or empty string in this case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added check which returns "Row collection is empty" string

Brrovko
Brrovko previously approved these changes Sep 27, 2021
@SergeyRuzin SergeyRuzin merged commit b1afc04 into develop Sep 27, 2021
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.

4 participants