Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
7 stars 3 forks source link

feat: 1693 Add role to marketparticipant WebApi #1850

Closed ShaBloze closed 1 year ago

ShaBloze commented 1 year ago

Description

Add role to MarketParticipant WebApi.

Reason for this: When searching for messages in a Price, we only get the GLN and role from MessageArchive. We want to display the correct name of the sender, so we need to find it by GLN and role.

References

codecov[bot] commented 1 year ago

Codecov Report

Merging #1850 (f3588a4) into main (61d94db) will increase coverage by 52.03%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main    #1850       +/-   ##
===========================================
+ Coverage   31.84%   83.87%   +52.03%     
===========================================
  Files          24      447      +423     
  Lines         537     7889     +7352     
  Branches       22       22               
===========================================
+ Hits          171     6617     +6446     
- Misses        351     1151      +800     
- Partials       15      121      +106     
Flag Coverage Δ
business 87.67% <100.00%> (?)
clientlibraries 31.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...Api/ModelPredicates/MarketParticipantQueryLogic.cs 100.00% <100.00%> (ø)
...rastructure.Core/Registration/EnvironmentHelper.cs 0.00% <0.00%> (ø)
...nputValidation/ValidationRules/MaximumPriceRule.cs 60.00% <0.00%> (ø)
...Charges/ChargePriceRejectionBundleSpecification.cs 77.77% <0.00%> (ø)
...Configurations/MeteringPointEntityConfiguration.cs 100.00% <0.00%> (ø)
...Cim/MarketDocument/IndustryClassificationMapper.cs 100.00% <0.00%> (ø)
...gurations/AvailableChargeLinksDataConfiguration.cs 100.00% <0.00%> (ø)
...ityConfigurations/ChargeLinkEntityConfiguration.cs 100.00% <0.00%> (ø)
....MessageHub/Infrastructure/Cim/CimXmlSerializer.cs 100.00% <0.00%> (ø)
...MessageHub/Infrastructure/Cim/CimJsonSerializer.cs 100.00% <0.00%> (ø)
... and 413 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

sonarcloud[bot] commented 1 year ago

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

0.0% 0.0% Coverage
0.0% 0.0% Duplication