Skip to content
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

Bug/1279 metric checkin value is not validated correctly #1329

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

RandomTannenbaum
Copy link
Collaborator

No description provided.

@RandomTannenbaum RandomTannenbaum linked an issue Jan 22, 2025 that may be closed by this pull request
4 tasks
@nevio18324 nevio18324 force-pushed the bug/1279-metric-checkin-value branch from 46157a6 to f2d53cd Compare January 23, 2025 09:38
@@ -28,11 +28,6 @@ export class CheckInFormMetricComponent implements OnInit {

Copy link
Collaborator

Choose a reason for hiding this comment

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

is hasFormFieldErrors still used?

@@ -167,10 +177,10 @@ describe('CheckInFormComponent', () => {
component.keyResult = keyResultOrdinal;
component.ngOnInit();
component.setDefaultValues();
console.log(component.dialogForm.value);
Copy link
Collaborator

Choose a reason for hiding this comment

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

ähmm

...baseCheckIn,
[this.keyResult.keyResultType === 'ordinal' ? 'zone' : 'value']: this.dialogForm.controls.value.value
};
this.keyResult.keyResultType === 'metric'
Copy link
Collaborator

Choose a reason for hiding this comment

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

that looks very weird improve readability

@@ -178,4 +176,11 @@ export class CheckInFormComponent implements OnInit {
this.dialogForm.patchValue({ actionList: actionList });
this.isAddingAction = false;
}

setValidators(type: string) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice

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.

Metric Check-In "Neuer Wert" wird nicht korrekt validiert
3 participants