Skip to content
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

Compile csharp datamodel before saving #11785

Merged
merged 14 commits into from
Dec 12, 2023

Conversation

standeren
Copy link
Contributor

@standeren standeren commented Dec 5, 2023

Description

Do compilation of csharp datamodell when clicking generate model and return customErrorMessages if there are any. If frontend receives any custom error messages it lists them in a new errors panel component.

Example when generating a datamodel with a field having the same name as the model itself and with a type named the same as one of its inner fields:

Screenshot 2023-12-08 at 12 52 09

Related Issue(s)

  • #{issue number}

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Automatic tests are added

@standeren standeren linked an issue Dec 5, 2023 that may be closed by this pull request
@github-actions github-actions bot added area/data-modeling Area: Related to data models - e.g. create, edit, use data models. solution/studio/designer Issues related to the Altinn Studio Designer solution. quality/testing Tests that are missing, needs to be created or could be improved. kind/dependencies Used for issues or pull requests that are dependency updates labels Dec 5, 2023
@standeren standeren force-pushed the 11461-try-to-compile-c-model-before-saving branch from 5ec9f34 to 4a254bf Compare December 5, 2023 11:12
@standeren standeren marked this pull request as draft December 5, 2023 11:18
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (80c9a61) 84.85% compared to head (4a35fd2) 84.95%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11785      +/-   ##
==========================================
+ Coverage   84.85%   84.95%   +0.09%     
==========================================
  Files         886      887       +1     
  Lines       13054    13080      +26     
  Branches     1661     1664       +3     
==========================================
+ Hits        11077    11112      +35     
+ Misses       1739     1732       -7     
+ Partials      238      236       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@standeren standeren force-pushed the 11461-try-to-compile-c-model-before-saving branch 9 times, most recently from 7038275 to df6a2e6 Compare December 6, 2023 12:02
@standeren standeren marked this pull request as ready for review December 6, 2023 12:07
@standeren standeren force-pushed the 11461-try-to-compile-c-model-before-saving branch 3 times, most recently from 695622f to 3571dcf Compare December 6, 2023 13:45
@mirkoSekulic
Copy link
Collaborator

Seems like there is an issue in the frontend. Docker build fails.

@standeren
Copy link
Contributor Author

standeren commented Dec 7, 2023

Seems like there is an issue in the frontend. Docker build fails.

Yep, there was some errors in a master version that was merged into this branch, but it should be fixed in current master! 😄

@standeren standeren force-pushed the 11461-try-to-compile-c-model-before-saving branch 2 times, most recently from 5546c6d to 4b7a637 Compare December 7, 2023 14:37
@github-actions github-actions bot removed the kind/dependencies Used for issues or pull requests that are dependency updates label Dec 8, 2023
@standeren standeren force-pushed the 11461-try-to-compile-c-model-before-saving branch 3 times, most recently from 52032ae to e9d767a Compare December 11, 2023 08:57
Copy link
Collaborator

@framitdavid framitdavid left a comment

Choose a reason for hiding this comment

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

A lot of great work is done!! 🚀 👏 I have a few comments for consideration 😊

@standeren standeren force-pushed the 11461-try-to-compile-c-model-before-saving branch 2 times, most recently from becb883 to 1ae3d92 Compare December 12, 2023 06:29
@standeren standeren force-pushed the 11461-try-to-compile-c-model-before-saving branch from 1ae3d92 to 4a35fd2 Compare December 12, 2023 06:40
Copy link
Collaborator

@framitdavid framitdavid left a comment

Choose a reason for hiding this comment

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

🚀 🥇

@standeren standeren merged commit b0b879e into master Dec 12, 2023
16 checks passed
@standeren standeren deleted the 11461-try-to-compile-c-model-before-saving branch December 12, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/data-modeling Area: Related to data models - e.g. create, edit, use data models. quality/testing Tests that are missing, needs to be created or could be improved. solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try to compile c# model before saving
3 participants