-
Notifications
You must be signed in to change notification settings - Fork 40
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
Table "hidden" attribute flag not exported #91
Comments
Would that be stored with the Document Properties? I am not sure how that may differ from the table attributes property found here. I have also seen reference to deep hidden tables, so that might be another thing to consider. If we do find important metadata that is not being saved anywhere else, we could consider adding a |
Let me jump in and take a look at this issue... |
Okay, after looking into this in more detail, it looks like the Adding this to the The direction that I would be leaning towards is adding this property to a companion .json file for the table. We already create the .json file for linked tables an several other types of objects to handle metadata that is not included in the normal export files, so it feels like a very consistent and logical place to put it. The .json file would just contain another entry for the I am not super excited about the idea of creating piles of .json files that only contain a single attribute, but my thought would be to only add the attribute (or create the file) if the hidden flag was set to A second reason that I would lean towards the companion .json file is based on some discussions in #81 where we may in the future be adding some optional tighter integration with .git. Depending on how this is implemented, we may be using the companion .json files to store the git head version or other metadata that could be used to drastically improve performance on very large databases, and support a Merge Build concept where a handful of changed objects are integrated into an existing database rather than building the whole thing from scratch each time. There is also the possibility that we will in the future uncover other types of attributes that are not contained in the export files. A third option to consider would be a separate Those are my initial thoughts, but I would welcome additional ideas or input from you as well! |
In regard to the additional table properties, I believe the answer there will be to change our XML table structure export to use This is mainly pending some updates to the XML sanitization function to strip out elements like |
You are right, as usual 😺 If I sum up your proposals:
The issue with the first approach is that we will need to add code and JSON export for all objects that can be hidden: forms, tables, macros, reports, modules. So that could represents a lot of work since some object type are not using any JSON file. The advantage with the second approach is that it is similar to my current PR, but inside another file. I believe implementation would be faster. |
Yes, maybe let's go with the |
Alright, I'll start working on it and provide a PR 😉 As for the other properties, we could simply remove the filtering with a blacklist approach just like above. See clsDbDocument.bas#L152 |
Thank you for correcting my code 😺 And I want to thank you for all your work and for being so understanding. I love this addin and it makes my life so much easier...! 😄 |
Great work on the class for the hidden attributes! I made a small change to simplify the display in the json file. You are doing a great job, and I really appreciate your contributions and interest in this project! 😄 |
I like contributing and giving back when I have time (and when I know how!). This is open-source at its best, people from a wide horizons working together on a useful tool for them 😃 It just feels good, and I must say especially during these trying times! So thank you and be sure I'll continue to contribute if I can! |
Hello,
I identified a new small issue: when exporting a table, the "hidden" flag attribute is not exported as well. Hence when building from source, the table is created but without the flag set.
This attribute can be set on a table property (right click on it, then Property). Here in French, it says Masqué (hidden).
Here is an example before/after building from source:
I'm not sure how to tackle this issue since there is nowhere to put this information easily. I can only see a
.sql
and a.xml
file created. There is no JSON file that could contain this property.What do you think?
The text was updated successfully, but these errors were encountered: