intersystems / git-source-control

Server-side source control hooks for InterSystems' platforms to facilitate use of git, especially in shared and/or remote development environments and for interoperability graphical editors
11 stars 7 forks source link

How to import DFI not from /src/dfi folder #429

Open evshvarov opened 2 months ago

evshvarov commented 2 months ago

If I don't use the Directory clause for DFI resources git-source-control exports to:

/src/folder/name.dashboard.xml

Consider the following module.xml. How can I describe resources so it can load/install DFI documents (pivots/dashboards) not from /src/dfi/Covid19 folder but from /src/Covid19?

It looks like that now IPM ignores DFI documents if they are not in /src/dfi folder

isc-tleavitt commented 1 month ago

The original HS package manager was very prescriptive on the mapping of server document name to filename. IPM is less so for the sake of convenience, but it messes with source control a bit. (That is, it'll look for the same document in a few different possible places and load from wherever it's found.)

Bottom line, I'd expect the correct combination of Directory, FilenameTranslateAssociator, and FilenameTranslateIdentifier attributes on the .DFI resources to clear things up. Leaving this open to play with the sample use case a bit at some point when I have bandwidth.