- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.8k
          Introduce switchDictionary methods for profiles
          #14075
        
          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
base: main
Are you sure you want to change the base?
Conversation
| I know this is a quite large PR, but there's a lot of repetition in there (which also can't really be reduced). | 
| Codecov Report❌ Patch coverage is  ❌ Your patch check has failed because the patch coverage (68.26%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@            Coverage Diff             @@
##             main   #14075      +/-   ##
==========================================
- Coverage   92.27%   92.14%   -0.13%     
==========================================
  Files         657      662       +5     
  Lines       41111    41319     +208     
==========================================
+ Hits        37936    38075     +139     
- Misses       2173     2208      +35     
- Partials     1002     1036      +34     ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works fine here 👍
This is the next step towards #13106
It introduces private
switchDictionarymethods for all profile structs, so their base dictionary can be switched, which is a requirement (and maybe the biggest bit) of merging profiles.Right now, the private method isn't called yet, because this PR is already very big, and I believe introducing
MergeToshould be in another PR.But the gist is that to merge profiles together, we need to change the base dictionary for the profiles that are being moved before we can merge the two slices of resource profiles into one.