Skip to content

Automatically create different model files per library#2521

Merged
koesie10 merged 2 commits intomainfrom
koesie10/auto-create-model-files
Jun 23, 2023
Merged

Automatically create different model files per library#2521
koesie10 merged 2 commits intomainfrom
koesie10/auto-create-model-files

Conversation

@koesie10
Copy link
Copy Markdown
Member

This will remove the user input for a model file and will instead create 1 model file per library (JAR/DLL). The model filename will be based on the JAR/DLL name, but will remove the version number and the file extension. It will also normalize the name.

These files will be created automatically, and the editor now also reads in all files contained in an extension pack to read the modeled methods. This could result in duplicates if the user has created a different file to contain the same modeled methods, but this is an edge-case that we're explicitly not handling.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

Base automatically changed from koesie10/add-library-to-data-extensions-editor to main June 19, 2023 10:07
@koesie10 koesie10 requested a review from starcke June 19, 2023 10:31
@koesie10 koesie10 marked this pull request as ready for review June 19, 2023 10:31
@koesie10 koesie10 requested review from a team as code owners June 19, 2023 10:31
@starcke
Copy link
Copy Markdown
Contributor

starcke commented Jun 19, 2023

Before digging in I had a few thoughts/questions:

@koesie10 koesie10 mentioned this pull request Jun 19, 2023
3 tasks
@koesie10 koesie10 force-pushed the koesie10/auto-create-model-files branch from 74a9481 to a94f05d Compare June 19, 2023 12:31
koesie10 added 2 commits June 22, 2023 11:44
This will remove the user input for a model file and will instead create
1 model file per library (JAR/DLL). The model filename will be based on
the JAR/DLL name, but will remove the version number and the file
extension. It will also normalize the name.

These files will be created automatically, and the editor now also reads
in all files contained in an extension pack to read the modeled methods.
This could result in duplicates if the user has created a different file
to contain the same modeled methods, but this is an edge-case that we're
explicitly not handling.
@koesie10 koesie10 force-pushed the koesie10/auto-create-model-files branch from a94f05d to 669f4a6 Compare June 22, 2023 09:44
Copy link
Copy Markdown
Contributor

@starcke starcke left a comment

Choose a reason for hiding this comment

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

I think this looks good. It is of course a bit iffy with the version number, but this is definately good for version 1.

return extensionPackOption.extensionPack;
}

async function pickModelFile(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉 actually a nice simplification.

@koesie10 koesie10 merged commit 82cdf03 into main Jun 23, 2023
@koesie10 koesie10 deleted the koesie10/auto-create-model-files branch June 23, 2023 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants