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

CSP Mapping not working when pulling / importing files. #251

Closed
a-schuetz opened this issue Mar 30, 2023 · 2 comments · Fixed by #589
Closed

CSP Mapping not working when pulling / importing files. #251

a-schuetz opened this issue Mar 30, 2023 · 2 comments · Fixed by #589
Assignees
Labels
bug Something isn't working customer Based on customer feedback (as opposed to something identified by developers)

Comments

@a-schuetz
Copy link

CSP files are not mapped/imported correctly. CSP files are exported and pushed to the Git repository correctly, but the other way around doesn't work. When pulling / importing files the are copied to the wrong place.

Possibly the issue might have to do with the correct use of slashes. I tried replacing '/' with '' in the mapping and also a mixture of both, But I couldn't figure out a working combination. Mostly to the files get imported to the csp root folder of the namespace.

@a-schuetz a-schuetz changed the title CSP Mapping not working whenn pulling / importing files. CSP Mapping not working when pulling / importing files. Apr 5, 2023
@isc-tleavitt isc-tleavitt self-assigned this Apr 14, 2023
@isc-tleavitt isc-tleavitt added bug Something isn't working customer Based on customer feedback (as opposed to something identified by developers) labels Apr 14, 2023
@isc-tleavitt
Copy link
Collaborator

@a-schuetz could you share the mappings you're using that lead to this?

@a-schuetz
Copy link
Author

a-schuetz commented Apr 14, 2023

I cleaned up the Source Control globals and reproduced the issue with the following mapping:

"/CSP/" "/csp/healthshare/sourcecontrol" "csp/healthshare/sourcecontrol/"

or:

^SYS("SourceControl","Git","settings","mappings","/CSP/","/csp/healthshare/sourcecontrol")="csp\healthshare\sourcecontrol"

Steps to reproduce:

  1. Create a CSP file on an IRIS instance
  2. Add, commit and push CSP file to the git Repository
  3. Pull Git repository on another IRIS instance

If the other instance is currently using a different branch:

  1. Switch the branch to the branch containing the new CSP file
  2. Import all

This is the error:

==import start==
ERROR importing/csp/healthshare/sourcecontrol/test.csp

ERROR #5001: Unable to import 'C:\SourceControl\IRIS\SOURCECONTROLNS\csp\healthshare\sourcecontrol\test.csp'

The path is correct.

When I create an empty file with the same name in the IRIS csp directory the import is partially successful. The file gets replaced in the file system but I have to add it manually to the workspace.

Bildschirmfoto 2023-04-14 um 16 56 07

The backslash theory tourned out to be wrong. I think this only worked somehow before because I didn't clean up the globals. Now I get an error message when using backslashes and trying to add a CSP file. The same goes for the files beeing copied to the wrong place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working customer Based on customer feedback (as opposed to something identified by developers)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants