{"id":687,"date":"2020-01-08T13:15:46","date_gmt":"2020-01-08T13:15:46","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/reliability\/imported-data-should-be-committed-or-stored-in-a-variable\/"},"modified":"2022-02-17T15:36:13","modified_gmt":"2022-02-17T15:36:13","slug":"pointlessimport","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/pointlessimport","title":{"rendered":"Imported data should be committed or stored in a variable"},"content":{"rendered":"\n<p style=\"text-align:center\">Introduced in version: 1.3 (29 Jan 2020)<\/p>\n\n\n\n<p> It does not make sense to import data and not use it. If the entity is persistent committing it or storing it as a variable is enough. Non-persistent entities have to be stored in a variable since committing them does not do much. <\/p>\n\n\n\n<p><strong>Noncompliant example<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"329\" src=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-8.png\" alt=\"\" class=\"wp-image-688\" srcset=\"https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-8.png 776w, https:\/\/sdf-docs.clevr.com\/wp-content\/uploads\/2020\/01\/image-8-480x204.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 776px, 100vw\" \/><\/figure>\n\n\n\n<p><strong>Compliant example:<\/strong><\/p>\n\n\n\n<p>Either committed or stored in a variable set to yes (or yes without events)<\/p>\n","protected":false},"featured_media":0,"parent":97,"menu_order":31,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-687","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/687"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=687"}],"version-history":[{"count":3,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/687\/revisions"}],"predecessor-version":[{"id":2400,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/687\/revisions\/2400"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/97"}],"next":[{"title":"Return expressions for a flow should be different","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/identicalreturnvalue","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/802"}],"prev":[{"title":"Declared variables should be used","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/unusedvariable","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/701"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=687"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}