Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

"Max Length" property value is no longer saved into diagram file after update to 1.3.0.6 #103

Closed
mmarinchenko opened this issue Oct 1, 2019 · 11 comments
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
Milestone

Comments

@mmarinchenko
Copy link

I've just updated EF Designer from version 1.3.0.4 to 1.3.0.6. After that I've opened my test diagram and re-saved it. Max Length constraint disappeared.

Then I tried to set Max Length constraint in Properties window and saved diagram one more time. No luck.

So I opened diagram file in text editor. No Max Length value inside.

I use VS 2017 (15.9.16).

@msawczyn msawczyn added the investigating Looking into this label Oct 1, 2019
@msawczyn msawczyn added this to Enhancement Triage in EFDesigner via automation Oct 1, 2019
@msawczyn msawczyn moved this from Enhancement Triage to Bug Report in EFDesigner Oct 1, 2019
@msawczyn msawczyn added bug Confirmed bug released Issue is resolved in a current release and removed investigating Looking into this labels Oct 3, 2019
@msawczyn msawczyn added this to the 1.3.0.7 milestone Oct 3, 2019
@msawczyn msawczyn moved this from Bug Report to Done in EFDesigner Oct 3, 2019
@msawczyn
Copy link
Owner

msawczyn commented Oct 3, 2019

Thanks for the catch. Been working on a feature change for string length, where you can explicitly state that the string should be maximum available length, to remove the annoyances of getting a warning for 0-length string. That code got merged before it was ready.

It's yanked out now and the fix is in 1.3.0.7.

@mmarinchenko
Copy link
Author

Many thanks for quick response, Michael!

@msawczyn
Copy link
Owner

msawczyn commented Oct 5, 2019

v1.3.0.7 is now in the Releases section here on GitHub. Please let me know if you still experience any problems with this.

@mmarinchenko
Copy link
Author

Ok, thank you! I'll try new version next week.

@mmarinchenko
Copy link
Author

I've just installed v1.3.0.7 (over v1.3.0.4) and tested it with my diagram.

The only thing I found not very convenient is change in default AutoProperty value. To keep the previous behavior I had to go through all the properties and manually change the value to "True".

Everything else seems to be working fine. Thank you!

@msawczyn
Copy link
Owner

msawczyn commented Oct 7, 2019

Hmm. Thanks. You should not have had to do that - it should be the default. I'll make sure to check that out and fix if it got flipped for some reason.

I appreciate you're testing it out.

@mmarinchenko
Copy link
Author

mmarinchenko commented Oct 7, 2019

As far as I understand the original diagram files (saved in v1.3.0.4) didn't have explicit autoProperty attributes in properties configuration.

So while reading XML (in v1.3.0.7) the absence of attributes were treated as they have "False" values. Therefore in the UI the values were set to "False" but bolded because at the UI level the default is "True".

P.S. At the entity level "AutoProperty Default" values were correctly set to "True". I didn't have to change them manually.

@msawczyn
Copy link
Owner

msawczyn commented Oct 7, 2019 via email

@msawczyn msawczyn modified the milestones: 1.3.0.7, 1.3.0.8 Oct 9, 2019
@msawczyn
Copy link
Owner

msawczyn commented Oct 9, 2019

Thanks for the info on the AutoProperty attribute acting up. That's resolved now. Unfortunately, any model that might have been edited with 1.3.0.6 or 1.3.0.7 may have the overrides embedded in its data now. An annoyance, to be sure.

@mmarinchenko
Copy link
Author

Thank you for your prompt support, Michael.

@msawczyn msawczyn added pending release Issue is resolved in the current codebase, will be published with the next release and removed released Issue is resolved in a current release labels Oct 10, 2019
@msawczyn
Copy link
Owner

Fix available for review in v1.3.0.8-pre

@msawczyn msawczyn added released Issue is resolved in a current release and removed pending release Issue is resolved in the current codebase, will be published with the next release labels Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Confirmed bug released Issue is resolved in a current release
Projects
EFDesigner
  
Done
Development

No branches or pull requests

2 participants