Skip to content

ISSUE-139957: fixing Achmea issues#105

Merged
marekpelc-pega merged 7 commits intomasterfrom
bugfix/pelcm/ISSUE-139957-Achmea-issues
Feb 23, 2026
Merged

ISSUE-139957: fixing Achmea issues#105
marekpelc-pega merged 7 commits intomasterfrom
bugfix/pelcm/ISSUE-139957-Achmea-issues

Conversation

@marekpelc-pega
Copy link
Copy Markdown
Contributor

  • fixing cursor position in input
  • fixing exception when no columns provided to EditableTable
  • fixing infinite loop caused by initing component to early
  • fixing when rules in views inside embedded data

@marekpelc-pega marekpelc-pega requested a review from a team as a code owner February 18, 2026 12:59
@lukaszgajewski-pega
Copy link
Copy Markdown
Contributor

@marekpelc-pega Please take a look at failing build:

image

@marekpelc-pega marekpelc-pega force-pushed the bugfix/pelcm/ISSUE-139957-Achmea-issues branch from 47e522d to 062b4ba Compare February 19, 2026 14:49
const newComponent = this.componentsManager.upsert(oldComponent, newPConn.meta.type, [newPConn]);
let newComponent;
if (oldComponent) {
oldComponent.update(newPConn)
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.

Missing semicolon in all places where upsert has been inlined.


#evaluateWhenVisibility(contextName, visibilityExpression) {
let bVisibility = true;
// e.g. "@E .EmbeddedData_SelectedTestName == 'Readonly' && .EmbeddedData_SelectedSubCategory == 'Mode'"
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.

You're evaluating @W here, not @E.

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.

implementation was changes so that in case od @W configProps.visibility is used

#evaluateWhenVisibility(contextName, visibilityExpression) {
let bVisibility = true;
// e.g. "@E .EmbeddedData_SelectedTestName == 'Readonly' && .EmbeddedData_SelectedSubCategory == 'Mode'"
const aVisibility = visibilityExpression.split('&&');
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.

Are we supporting && only? What about other operators?

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.

code removed

const valueEndIndex = property.lastIndexOf("'") - 1;
return {
...properties,
[property.substr(keyStartIndex + 1, keyEndIndex - keyStartIndex - 1)]: property.substr(valueStartIndex + 1, valueEndIndex - valueStartIndex)
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.

Looks like a piece of custom code for expression evaluation. Can't you use pcore/pconnect APIs here?

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.

code removed

*
* @param type - type of component to create
* @param args - arguments to pass to the component's constructor
* @param init - if true, calls the component's init() method after creation
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.

no longer valid

/**
* Creates a component.
*
* Warning: We cannot init() component here because it may cause infinite loop.
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.

Btw, you should be able to create & init components in all places where you are operating on local variables.

@marekpelc-pega marekpelc-pega merged commit e4f6ede into master Feb 23, 2026
3 checks passed
@lukaszgajewski-pega lukaszgajewski-pega deleted the bugfix/pelcm/ISSUE-139957-Achmea-issues branch March 6, 2026 15:29
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.

2 participants