Skip to content

Breaks DataQualityCommittee/dqc_us_rules #24

@michaelchadfleming

Description

@michaelchadfleming

_xule_resources_dir = os.path.join(os.path.dirname(__file__), "resources", "xule")

We've encountered an issue with EDGAR 25.1 recently. The issue is that the new EDGAR Xule/DQC isn't playing nicely with the DataQualityCommittee/dqc_us_rules. I spoke with both Herm and David over the phone yesterday and they both mentioned a few good ideas. The crux of our current issue is that XuleInterface.py is changing the _xule_resources_dir and that is breaking DataQualityCommittee/dqc_us_rules. The consequence that we're experiencing is we are not getting any DQC error messages or only getting some of the errors/warnings. Our various development teams are mitigating these issues by modifying the EDGAR code in various ways unfortunately.

I have a question at this point in the discussion; is there a flag we can use in the command argument parameters to disable EDGAR Xule/DQC and stop it from changing the _xule_resources_dir? If not, it might be beneficial to allow there to be two different _xule_resources_dir: (1.) one when processing EDGAR Xule/DQC and (2.) one for DataQualityCommittee/dqc_us_rules.

CURRENT ISSUE

No DQC warning logs are showing

PLUGIN VERSIONS

ARELLE_VERSION=2.36.29

EDGAR_VERSION=25.1

DQC_PLUGIN_VERSION=26.0.4

XULE_PLUGIN_VERSION=30045.2

IXBRL_VIEWER_VERSION=1.4.62

APPLICATION PROJECT PROCESS TO RUN ARELLE

Using Dockerfile we are setting the following configuration:

  1.  Pulling Arelle from git repo 
    
  2.  Pulling EDGAR from git repo and copying it into “/opt/Arelle/arelle/plugin” 
    
  3.  Pulling xule from git repo and copying it into “/opt/Arelle/arelle/plugin” 
    
  4.  Pulling DQC python file from xule git repository and replacing it into “/opt/Arelle/arelle/plugin/EDGAR/validate” 
    
  5.  Pulling rulesetMap from DQC repository [https://raw.githubusercontent.com/DataQualityCommittee/dqc_us_rules/v${DQC_PLUGIN_VERSION}/rulesetMap.json](https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2FDataQualityCommittee%2Fdqc_us_rules%2Fv%24%257BDQC_PLUGIN_VERSION%257D%2FrulesetMap.json&data=05%7C02%7Cchad.c.fleming%40dfinsolutions.com%7Ce067115363c4434b2bba08dd6ca14e12%7C64ebfaf9be4543c29e9cfcb060bf234d%7C1%7C0%7C638786162236552911%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=v8OK%2FBH%2FBldzLPj8%2FK1CrujjzRaGMuXqX7gQZvp98%2Fo%3D&reserved=0) and replacing it into “/opt/Arelle/arelle/plugin/xule/rulesetMap.json” 
    

With this previous configuration we are running a docker container for Arelle and calling it from our project with curl:

/rest/xbrl/validation?disclosure-system=efm-pragmatic&media=zip&copyInlineFilesToOutput=true&copyXbrlFilesToOutput=true&saveViewer=false&logFile=logFile.json&zipXbrlFilesToOutput=true&saveTargetInstance=true&calc=c11r

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions