Skip to content

Commit 722dd0e

Browse files
committed
docs: add migration doc and logs for Angular 13 → 14
1 parent dce64b9 commit 722dd0e

5 files changed

Lines changed: 385 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
5 specs, 3 failures, randomized with seed 18571
2+
Spec List | Failures
3+
SettingsComponent > should handle max level reset to default
4+
TypeError: Cannot read properties of undefined (reading 'activityMeta')
5+
TypeError: Cannot read properties of undefined (reading 'activityMeta')
6+
at templateFn (ng:///SettingsComponent.js:535:44)
7+
at executeTemplate (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12126:9)
8+
at refreshView (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12011:13)
9+
at refreshComponent (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13085:13)
10+
at refreshChildComponents (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:11801:9)
11+
at refreshView (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12061:13)
12+
at detectChangesInternal (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13229:9)
13+
at RootViewRef.detectChanges (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13741:9)
14+
at ComponentFixture._tick (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/testing.mjs:140:32)
15+
at http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/testing.mjs:153:22
16+
Expected spy SettingsService.setMaxLevel to have been called with:
17+
[ null ]
18+
but actual calls were:
19+
[ 5 ].
20+
21+
Call 0:
22+
Expected $[0] = 5 to equal null.
23+
Error: Expected spy SettingsService.setMaxLevel to have been called with:
24+
[ null ]
25+
but actual calls were:
26+
[ 5 ].
27+
Call 0:
28+
Expected $[0] = 5 to equal null.
29+
at <Jasmine>
30+
at UserContext.apply (http://localhost:9876/_karma_webpack_/webpack:/src/app/pages/settings/settings.component.spec.ts:98:41)
31+
at UserContext.apply (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone-testing.js:2030:30)
32+
at _ZoneDelegate.invoke (http://localhost:9876/_karma_webpack_/webpack:/node_modules/zone.js/fesm2015/zone.js:372:26)
33+
SettingsComponent > should update max level settings correctly
34+
TypeError: Cannot read properties of undefined (reading 'activityMeta')
35+
TypeError: Cannot read properties of undefined (reading 'activityMeta')
36+
at templateFn (ng:///SettingsComponent.js:535:44)
37+
at executeTemplate (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12126:9)
38+
at refreshView (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12011:13)
39+
at refreshComponent (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13085:13)
40+
at refreshChildComponents (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:11801:9)
41+
at refreshView (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12061:13)
42+
at detectChangesInternal (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13229:9)
43+
at RootViewRef.detectChanges (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13741:9)
44+
at ComponentFixture._tick (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/testing.mjs:140:32)
45+
at http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/testing.mjs:153:22
46+
SettingsComponent > should create
47+
TypeError: Cannot read properties of undefined (reading 'activityMeta')
48+
TypeError: Cannot read properties of undefined (reading 'activityMeta')
49+
at templateFn (ng:///SettingsComponent.js:535:44)
50+
at executeTemplate (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12126:9)
51+
at refreshView (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12011:13)
52+
at refreshComponent (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13085:13)
53+
at refreshChildComponents (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:11801:9)
54+
at refreshView (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:12061:13)
55+
at detectChangesInternal (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13229:9)
56+
at RootViewRef.detectChanges (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/core.mjs:13741:9)
57+
at ComponentFixture._tick (http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/testing.mjs:140:32)
58+
at http://localhost:9876/_karma_webpack_/webpack:/node_modules/@angular/core/fesm2020/testing.mjs:153:22

docs/logs/13-14_warnings.txt

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
[~/xod/open/DevSecOps-MaturityModel]
2+
✘  sawankshrma   mygsoc2026  npx ng serve
3+
⠋ Generating browser application bundles (phase: building)...: The same density styles are generated multiple times. Read more about how style duplication can be avoided in a dedicated guide. https://github.com/angular/components/blob/main/guides/duplicate-theming-styles.md
4+
node_modules/@angular/material/core/theming/_theming.scss 349:9 private-check-duplicate-theme-styles()
5+
node_modules/@angular/material/core/theming/_all-theme.scss 42:3 all-component-themes()
6+
src/custom-theme.scss 113:3 root stylesheet
7+
8+
✔ Browser application bundle generation complete.
9+
10+
Initial Chunk Files | Names | Raw Size
11+
vendor.js | vendor | 7.48 MB |
12+
polyfills.js | polyfills | 1.07 MB |
13+
main.js | main | 838.03 kB |
14+
styles.css, styles.js | styles | 320.01 kB |
15+
runtime.js | runtime | 6.49 kB |
16+
17+
```
18+
| Initial Total | 9.69 MB
19+
```
20+
21+
Build at: 2026-05-11T15:24:59.343Z - Hash: c795257efa881b51 - Time: 21611ms
22+
23+
Warning: src/app/component/activity-description/activity-description.component.html:72:44 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
24+
25+
72 [activityName]="currentActivity?.name || ''"
26+
~~~~
27+
28+
src/app/component/activity-description/activity-description.component.ts:20:16
29+
20 templateUrl: './activity-description.component.html',
30+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31+
Error occurs in the template of component ActivityDescriptionComponent.
32+
33+
Warning: src/app/component/activity-description/activity-description.component.html:283:69 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
34+
35+
283 >In other frameworks and standards the '{{ currentActivity?.name }}' activity is part of
36+
~~~~
37+
38+
src/app/component/activity-description/activity-description.component.ts:20:16
39+
20 templateUrl: './activity-description.component.html',
40+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41+
Error occurs in the template of component ActivityDescriptionComponent.
42+
43+
Warning: src/app/pages/matrix/matrix.component.html:43:64 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
44+
45+
43 <mat-icon mat-list-icon color="primary">{{dataStore?.meta?.getIcon(element.Category)}}</mat-icon>
46+
~~~~
47+
48+
src/app/pages/matrix/matrix.component.ts:31:16
49+
31 templateUrl: './matrix.component.html',
50+
~~~~~~~~~~~~~~~~~~~~~~~~~
51+
Error occurs in the template of component MatrixComponent.
52+
53+
Warning: src/app/pages/settings/settings.component.html:201:40 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
54+
55+
201 {{ remoteReleaseCheck?.latestRelease?.tagName }}
56+
~~~~~~~~~~~~~
57+
58+
src/app/pages/settings/settings.component.ts:32:16
59+
32 templateUrl: './settings.component.html',
60+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
61+
Error occurs in the template of component SettingsComponent.
62+
63+
Warning: src/app/pages/settings/settings.component.html:204:51 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
64+
65+
204 {{ dateFormat(remoteReleaseCheck?.latestRelease?.publishedAt) }}
66+
~~~~~~~~~~~~~
67+
68+
src/app/pages/settings/settings.component.ts:32:16
69+
32 templateUrl: './settings.component.html',
70+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
71+
Error occurs in the template of component SettingsComponent.
72+
73+
Warning: src/app/pages/settings/settings.component.html:209:47 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
74+
75+
209 [href]="remoteReleaseCheck?.latestRelease?.downloadUrl"
76+
~~~~~~~~~~~~~
77+
78+
src/app/pages/settings/settings.component.ts:32:16
79+
32 templateUrl: './settings.component.html',
80+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
81+
Error occurs in the template of component SettingsComponent.
82+
83+
Warning: src/app/pages/settings/settings.component.html:217:47 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
84+
85+
217 [href]="remoteReleaseCheck?.latestRelease?.changelogUrl"
86+
~~~~~~~~~~~~~
87+
88+
src/app/pages/settings/settings.component.ts:32:16
89+
32 templateUrl: './settings.component.html',
90+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
91+
Error occurs in the template of component SettingsComponent.
92+
93+
Warning: src/app/pages/settings/settings.component.html:228:41 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
94+
95+
228 <p>{{ remoteReleaseCheck?.latestCheckError }}</p>
96+
~~~~~~~~~~~~~~~~
97+
98+
src/app/pages/settings/settings.component.ts:32:16
99+
32 templateUrl: './settings.component.html',
100+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
101+
Error occurs in the template of component SettingsComponent.
102+
103+
Warning: src/app/pages/settings/settings.component.html:235:49 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
104+
105+
235 [disabled]="remoteReleaseCheck?.isChecking">
106+
~~~~~~~~~~
107+
108+
src/app/pages/settings/settings.component.ts:32:16
109+
32 templateUrl: './settings.component.html',
110+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
111+
Error occurs in the template of component SettingsComponent.
112+
113+
Warning: src/app/pages/teams/teams.component.html:18:27 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
114+
115+
18 {{ info[infoTitle]?.teams?.join(', ') }}
116+
~~~~~
117+
118+
src/app/pages/teams/teams.component.ts:27:16
119+
27 templateUrl: './teams.component.html',
120+
~~~~~~~~~~~~~~~~~~~~~~~~
121+
Error occurs in the template of component TeamsComponent.
122+
123+
Warning: src/app/pages/teams/teams.component.html:24:37 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
124+
125+
24 [value]="info[infoTitle]?.uniqueActivitiesCompletedCount"
126+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127+
128+
src/app/pages/teams/teams.component.ts:27:16
129+
27 templateUrl: './teams.component.html',
130+
~~~~~~~~~~~~~~~~~~~~~~~~
131+
Error occurs in the template of component TeamsComponent.
132+
133+
Warning: src/app/pages/teams/teams.component.html:28:37 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
134+
135+
28 [value]="info[infoTitle]?.uniqueActivitiesInProgressCount"
136+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
137+
138+
src/app/pages/teams/teams.component.ts:27:16
139+
27 templateUrl: './teams.component.html',
140+
~~~~~~~~~~~~~~~~~~~~~~~~
141+
Error occurs in the template of component TeamsComponent.
142+
143+
Warning: src/app/pages/teams/teams.component.html:32:48 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
144+
145+
32 [value]="dateFormat(info[infoTitle]?.lastUpdated)"
146+
~~~~~~~~~~~
147+
148+
src/app/pages/teams/teams.component.ts:27:16
149+
27 templateUrl: './teams.component.html',
150+
~~~~~~~~~~~~~~~~~~~~~~~~
151+
Error occurs in the template of component TeamsComponent.
152+
153+
Warning: src/app/pages/teams/teams.component.html:33:38 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
154+
155+
33 [suffix]="info[infoTitle]?.lastUpdated ? '' : 'No activity registered'"></app-kpi>
156+
~~~~~~~~~~~
157+
158+
src/app/pages/teams/teams.component.ts:27:16
159+
27 templateUrl: './teams.component.html',
160+
~~~~~~~~~~~~~~~~~~~~~~~~
161+
Error occurs in the template of component TeamsComponent.
162+
163+
Warning: src/app/pages/teams/teams.component.html:64:29 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
164+
165+
64 {{ dataStore?.meta?.getIcon(element?.activity?.category || '') }}
166+
~~~~
167+
168+
src/app/pages/teams/teams.component.ts:27:16
169+
27 templateUrl: './teams.component.html',
170+
~~~~~~~~~~~~~~~~~~~~~~~~
171+
Error occurs in the template of component TeamsComponent.
172+
173+
Warning: src/app/pages/teams/teams.component.html:87:75 - warning NG8107: The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore the '?.' operator can be replaced with the '.' operator.
174+
175+
87 <em>Currently no activities in progress for {{ info[infoTitle]?.teams?.join(', ') }}</em>
176+
~~~~~
177+
178+
src/app/pages/teams/teams.component.ts:27:16
179+
27 templateUrl: './teams.component.html',
180+
~~~~~~~~~~~~~~~~~~~~~~~~
181+
Error occurs in the template of component TeamsComponent.
182+
183+
Warning: /home/sawankshrma/xod/open/DevSecOps-MaturityModel/src/app/service/loader/mock-data-loader.service.ts is part of the TypeScript compilation but it's unused.
184+
Add only entry points to the 'files' or 'include' properties in your tsconfig.
185+
186+
Warning: /home/sawankshrma/xod/open/DevSecOps-MaturityModel/src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.
187+
Add only entry points to the 'files' or 'include' properties in your tsconfig.
188+
189+
- * Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
190+
191+
✔ Compiled successfully.

docs/logs/angular-cdk-14.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[~/xod/open/DevSecOps-MaturityModel]
2+
sawankshrma   mygsoc2026  npx ng update @angular/cdk@14 @angular/material@14
3+
4+
Using package manager: npm
5+
Collecting installed dependencies...
6+
Found 57 dependencies.
7+
Fetching dependency metadata from registry...
8+
Updating package.json with dependency @angular/cdk @ "14.2.7" (was "13.3.9")...
9+
Updating package.json with dependency @angular/material @ "14.2.7" (was "13.3.9")...
10+
UPDATE package.json (2532 bytes)
11+
✔ Packages successfully installed.
12+
** Executing migrations of package '@angular/cdk' **
13+
14+
▸ Updates the Angular CDK to v14.
15+
16+
✓ Updated Angular CDK to version 14
17+
18+
Migration completed.
19+
20+
** Executing migrations of package '@angular/material' **
21+
22+
▸ Updates the Angular Material to v14.
23+
24+
✓ Updated Angular Material to version 14
25+
26+
Migration completed.

0 commit comments

Comments
 (0)