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

Issue #SB-28247 fix:QA issues fixed #8248

Merged
merged 3 commits into from
Aug 24, 2022

Conversation

5Amogh
Copy link
Contributor

@5Amogh 5Amogh commented Aug 22, 2022

No description provided.

@@ -1192,7 +1192,7 @@ frmelmnts.lbl.switchToJoyLayout=Switch to joyful theme
frmelmnts.lbl.switchToOldLayout=Switch to classic theme
frmelmnts.lbl.switchUser=Change user
frmelmnts.lbl.tableNotAvailable=Table view is not available for this report
frmelmnts.lbl.table = Table
Copy link
Contributor

Choose a reason for hiding this comment

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

is this already existing one?
anywhere else is it used before can you check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No it is not, i had added this during the Program dashboard table feature development

@@ -21,7 +21,7 @@
<!-- title -->
<h4 class="textbook__title sb-color-primary font-weight-bold mt-8 ml-24" >{{resourceService?.frmelmnts?.lnk?.programDashboard}}</h4>
<div>
<button class="sb-btn sb-btn-primary sb-btn-normal px-24" (click)="goBack()">
Copy link
Contributor

Choose a reason for hiding this comment

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

why function name change?

@@ -9,7 +9,7 @@
<div class="mr-12">
<button type="button" [ngClass]="layoutConfiguration ? 'sb-btn-round' : ''"
class="sb-btn sb-btn-normal sb-btn-link sb-btn-link-primary sb-left-icon-btn px-0" tabindex="0"
(click)="goBack()" id="goBack" attr.aria-label="{{resourceService?.frmelmnts?.btn?.back}}">
(click)="closeDashboard()" id="goBack" attr.aria-label="{{resourceService?.frmelmnts?.btn?.back}}">
Copy link
Contributor

Choose a reason for hiding this comment

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

why function name change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A new function has been added specific for going back to previous location and closing the dashboard previous function goBack is related to filter pop-up closing functionality based on few scenarios

@@ -273,7 +275,7 @@ export class DatasetsComponent implements OnInit, OnDestroy {
this.reportForm.reset();
this.reportForm.controls.solution.setValue($event.value);
this.reportForm.controls.programName.setValue(program);

this.displayFilters['Resource'] = [$event.source.triggerValue]
Copy link
Contributor

Choose a reason for hiding this comment

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

check for undefined case also in all place

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whenever the click event on a filter dropdown triggers only then this value will be assigned so there won't be a case of undefined source or triggerValue (as it'd be the cause of the event)

Copy link
Contributor

Choose a reason for hiding this comment

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

if event is not there this will give a undefined issue please use the ? operator

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure will do @rajeevsathish

@@ -273,7 +275,7 @@ export class DatasetsComponent implements OnInit, OnDestroy {
this.reportForm.reset();
this.reportForm.controls.solution.setValue($event.value);
this.reportForm.controls.programName.setValue(program);

this.displayFilters['Resource'] = [$event.source.triggerValue]
Copy link
Contributor

Choose a reason for hiding this comment

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

if event is not there this will give a undefined issue please use the ? operator

@sonarcloud
Copy link

sonarcloud bot commented Aug 24, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

81.2% 81.2% Coverage
0.0% 0.0% Duplication

@rajeevsathish rajeevsathish merged commit 3258a1b into Sunbird-Ed:release-4.10.3 Aug 24, 2022
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.

3 participants