Commit fdaf7e9
Register NotApplicableStateAnalysisCard in JSON store registry (#5163)
Summary:
Pull Request resolved: #5163
Register `NotApplicableStateAnalysisCard` in the JSON store encoder/decoder registries for completeness and consistency with other AnalysisCard subclasses.
The JSON store registry uses exact type matching, so every concrete AnalysisCard subclass needs its own entry. This was not needed until now because analysis cards are persisted exclusively through the SQA store (which uses `isinstance()` checks and does not rely on this registry).
Adding the registration ensures the JSON store can correctly round-trip `NotApplicableStateAnalysisCard`, keeping it consistent with sibling subclasses like `ErrorAnalysisCard` and guarding against future use cases that may serialize analysis cards via JSON.
Reviewed By: Cesar-Cardoso
Differential Revision: D100189187
fbshipit-source-id: 44374b22d3b088ac70b7c5fb2833726009d920231 parent 5642476 commit fdaf7e9
3 files changed
Lines changed: 48 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| 228 | + | |
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
| |||
345 | 351 | | |
346 | 352 | | |
347 | 353 | | |
| 354 | + | |
348 | 355 | | |
349 | 356 | | |
350 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
473 | 478 | | |
474 | 479 | | |
475 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
476 | 491 | | |
477 | 492 | | |
478 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
3030 | 3034 | | |
3031 | 3035 | | |
3032 | 3036 | | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
3033 | 3044 | | |
3034 | 3045 | | |
3035 | 3046 | | |
3036 | 3047 | | |
3037 | 3048 | | |
3038 | 3049 | | |
3039 | 3050 | | |
3040 | | - | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
3041 | 3057 | | |
3042 | 3058 | | |
3043 | 3059 | | |
| |||
3099 | 3115 | | |
3100 | 3116 | | |
3101 | 3117 | | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
3102 | 3124 | | |
3103 | 3125 | | |
3104 | 3126 | | |
| |||
0 commit comments