Skip to content

Conversation

@antoineatstariongroup
Copy link
Collaborator

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the EA-ModelKit code style guidelines
  • I have provided test coverage for my change (where applicable)

Description

Fix #7

  • Possibility to select if a type/stereotype should exported or not
  • When set a exportable, possibility to select which taggedValue will be exported

foreach (var taggedValueToExport in taggedValuesToExport)
{
this.ExportableValues[taggedValueToExport] = element.TaggedValues.TryGetValue(taggedValueToExport, out var existingValue)
? string.Join("\n", existingValue.Select(x => x.Value))
Copy link
Member

Choose a reason for hiding this comment

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

can this be instead of \n the `Environment.Newline?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed and tested

});
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Please add newline at the end of each file. We had this rule earlier and it got removed. There is good reason to make diffs more readible when using git and git extensions

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A new line is already present on each file, just the Tests.csproj one that missed it

Copy link

@lxatstariongroup lxatstariongroup left a comment

Choose a reason for hiding this comment

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

Very nice code again, Antoine!

private static Assembly CurrentDomainOnAssemblyResolve(object sender, ResolveEventArgs args)
{
var folderPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var folderPath = Path.GetDirectoryName(typeof(App).Assembly.Location);

Choose a reason for hiding this comment

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

For performance, this result could be stored in a private static field. Not a reason to stop landing.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 6, 2024

@antoineatstariongroup antoineatstariongroup merged commit f90575e into development Dec 9, 2024
9 checks passed
@antoineatstariongroup antoineatstariongroup deleted the feat/GH7-generic-export-to-excel branch December 9, 2024 08:34
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.

Generic Export to Excel: TaggedValue

4 participants