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

Incremental does not perform deletes #210

Open
jashwood opened this issue Feb 14, 2022 · 2 comments
Open

Incremental does not perform deletes #210

jashwood opened this issue Feb 14, 2022 · 2 comments
Assignees

Comments

@jashwood
Copy link

jashwood commented Feb 14, 2022

When an inspection_item is deleted in the front end, the incremental refresh does not remove it from the target database.
SQL Server in our case.

@hkf57
Copy link
Member

hkf57 commented Feb 23, 2022

Hey @jashwood, could I get the command you are running and your config file?

@hkf57 hkf57 self-assigned this Feb 23, 2022
@jashwood
Copy link
Author

jashwood commented Feb 24, 2022

Hey, here are the details.
From what I have seen in the code of the exporter, it will never perform deletes on the target database, is that correct?
So if an object is deleted in the front end, the only way to delete it from the target database is to drop the table and repopulate it fully?

Command :-
c:\teambi\iAuditor\iAuditorExporter\iauditor-exporter.exe sql --db-dialect sqlserver --db-connection-string sqlserver://ourdatabase --config-path "C:\TeamBI\iAuditor\iAuditorExporter\iauditor-exporter-config.yaml"

Config File

access_token: "##########################"
api:
proxy_url: ""
tls_cert: ""
tls_skip_verify: false
url: https://api.safetyculture.io
db:
connection_string: ""
dialect: sqlserver
export:
incremental: true
inspection:
archived: "false"
completed: "true"
included_inactive_items: false
limit: 50
skip_ids: []
media: false
media_path: ./export/media/
modified_after: "2000-01-01"
path: ./export/
site:
include_deleted: false
tables: []
template_ids: []
report:
filename_convention: INSPECTION_TITLE
format:

  • PDF
    preference_id: ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants