-
Notifications
You must be signed in to change notification settings - Fork 42
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
ColumnInfo Changes #412
Comments
I'm not sure myself, but I did some investigating in my own repos. Here are some notes:
I'm not sure whether that helps at all. FWIW, I've never paid any attention to changes in the ColumnInfo setting. It's always just faded into the background noise that seems to come standard with Access version control. |
Thanks for the confirmation that it might be a background noise. It's one thing to ignore the I just discovered that a unbound combobox does not have it while a bound combobox has it, which may be the key. It's based on the rowsource and the properties are probably derived from whatever's in the rowsource. This is a bit more baffling since the |
Being of the curious sort, I did a little testing to see what might change the value of the last item. If I set the row source directly to a table, I see the following:
If I set it to a query, (or embedded query), it changes to 510.
I haven't found a change that sets the last value to 10... I tried changing it manually in the source file, and importing the object, but it went back to |
Adam, I know you invested some effort into sanitizing the file. I'm assuming that |
I haven't done a lot of testing on that particular value, mainly because it never caused any significant noise in projects I was working with. My general approach was to change as little as possible in the natively exported files, while at the same time working to reduce noise between builds and between development computers. Are you seeing a lot of changes in the ColumnInfo values, or just a few here and there? Anything reproducible between systems? |
Understood. I did have a commit that wants to change 10 files with lines just like that and it's not immediately clear to me what would cause it to change as I wasn't expecting any changes in that. Unfortunately I already made a series of commit to document the changes that I was expecting so I may have lost visibility into what change and would have to do a deeper diff to see what might triggered it. I may have to dump it into a throwaway commit, and see if it recurs and maybe find the underlying cause. |
Gotcha. Ten files isn't just one or two, so I can definitely see the reason for the question. Feel free to post back if you notice anything further on this, otherwise we can just keep an eye out for more clues down the road. |
Ok, some more information. For the pair of values, they represent the To make things even more interesting, because those are derived from the underlying rowsource, we have cases where it won't be in sync. For example:
The penultimate value in the Based on this information, I can see why diff in |
BTW, I think I may have figured out the last entry. It's the field size in bytes. 255 characters => 510 bytes. Therefore, that diff in the original post was a change in the underlying field's length from 5 characters to 255 characters. So in short, Access caches some metadata about the columns, with 2 additional information about the first visible column (which the user will interact with whenever they type in the editbox), and they all are ultimately derived from the rowsource. |
Very nice detective work, @bclothier! |
My thoughts exactly!! A very fascinating foray into the meaning of this mysterious value. Perhaps I will do a little testing to see if this value is recreated during build if it is sanitized in the source file... |
I did some testing with a combo box on a form, and this value was indeed regenerated when the form was imported. I tested this during a full build, importing just the affected form, and exporting/importing with the native commands and no sanitizing. In every case the @mwolfe02 and @bclothier - any concerns with sanitizing this value? |
My hypothesis is that when I changed the tables, the changes wasn't apparent in the related forms until I built from source. Therefore, the commit with the changes to table wouldn't necessarily show diff in the If that is the case, then I would say it is more beneficial to sanitize it. The only drawback is that it no longer provides a notice because a change in the captions, formats or the data type/field size can be fairly subtle. But I don't see how VCS would be able to detect this change especially when only the underlying tables/queries are edited, short of re-implementing the If the distance between the edits and the diff is indeed great, I'm inclined to go for sanitizing it. Let us deal with the diff in the table/query that impacts the captions, formats and the visible column's data type/field size. |
I vote for sanitizing it. From what I recall, the add-in includes an option to disable all sanitization anyway, right? |
Adding an optional sanitize level parameter to improve readability and reduce the conditional if blocks handling the current sanitize level. #412
This cached value is recreated when a form is imported, and can cause VCS noise on subsequent builds if the underlying data source is changed. See #412 for a detailed discussion on this.
@joyfullservice this appears to be addressed in the latest beta, and working for me. |
Yes, this value is being sanitized now. I will go ahead and close this out. 👍 |
I'm trying to understand what exactly this change signify. This is for a combobox on a form:
There is no such thing as
ColumnInfo
in the designer, and I suspect it's an aggregate of various properties such asColumnWidths
and other related properties. However, I can't see what would have changed from10
to510
and what this means. There is nothing in the combobox'sColumnWidths
so I was not expecting this to come up in diff. Any idea why it might be so?The text was updated successfully, but these errors were encountered: