[
https://issues.apache.org/jira/browse/ATLAS-4275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dharshana M Krishnamoorthy updated ATLAS-4275:
----------------------------------------------
Description:
When there is an error in the PreferredTerms of the input, error is not
considered
Consider the following input. Here the provided term "abcd:efgh" does not
exists in the system.
The error is thrown when it is provided as an input for "*PreferredToTerms*"
column but not for "*PreferredTerms*" column
{code:java}
GlossaryName, TermName, ShortDescription, LongDescription, Examples,
Abbreviation, Usage, AdditionalAttributes, TranslationTerms, ValidValuesFor,
Synonyms, ReplacedBy, ValidValues, ReplacementTerms, SeeAlso, TranslatedTerms,
IsA, Antonyms, Classifies, PreferredToTerms, PreferredTerms
dharsh,term_1,"short desc","long description", "Example", "G1", "Usage",
"glossary:100%",,,,,,,,,,,,,"abcd:efgh"
dharsh,term_2,"short desc","long description", "Example", "G1", "Usage",
"glossary:100%",,,,,,,,,,,,"abcd:efgh", {code}
*Expectation:*
2 failed message info should be thrown one for term_1(incorrect
PreferredTerms) and the other for term_2(incorrect PreferredToTerms), but only
1 is thrown
*Current output:*
{code:java}
{
"failedImportInfoList": [
{
"parentObjectName": "dharsh",
"childObjectName": "term_2",
"importStatus": "FAILED",
"remarks": "The provided Reference efgh@abcd does not exist at Atlas
referred at record with TermName : term_2 and GlossaryName : dharsh"
}
],
"successImportInfoList": [
{
"parentObjectName": "dharsh",
"childObjectName": "term_1",
"importStatus": "SUCCESS",
"remarks":
"{\"termGuid\":\"284fe9a7-911c-423a-90bf-adf8231afb27\",\"qualifiedName\":\"term_1@dharsh\"}"
},
{
"parentObjectName": "dharsh",
"childObjectName": "term_2",
"importStatus": "SUCCESS",
"remarks":
"{\"termGuid\":\"29a51c8a-ce92-4988-8fca-feaf683c58dd\",\"qualifiedName\":\"term_2@dharsh\"}"
}
]
} {code}
*Expected output:*
{code:java}
{
"failedImportInfoList": [
{
"parentObjectName": "dharsh",
"childObjectName": "term_1",
"importStatus": "FAILED",
"remarks": "The provided Reference efgh@abcd does not exist at Atlas
referred at record with TermName : term_1 and GlossaryName : dharsh"
},
{
"parentObjectName": "dharsh",
"childObjectName": "term_2",
"importStatus": "FAILED",
"remarks": "The provided Reference efgh@abcd does not exist at Atlas
referred at record with TermName : term_2 and GlossaryName : dharsh"
}
],
"successImportInfoList": [
{
"parentObjectName": "dharsh",
"childObjectName": "term_1",
"importStatus": "SUCCESS",
"remarks":
"{\"termGuid\":\"284fe9a7-911c-423a-90bf-adf8231afb27\",\"qualifiedName\":\"term_1@dharsh\"}"
},
{
"parentObjectName": "dharsh",
"childObjectName": "term_2",
"importStatus": "SUCCESS",
"remarks":
"{\"termGuid\":\"29a51c8a-ce92-4988-8fca-feaf683c58dd\",\"qualifiedName\":\"term_2@dharsh\"}"
}
]
} {code}
was:
When there is an error in the PreferredTerms of the input, error is not
considered
Consider the following input. Here the provided term "abcd:efgh" does not
exists in the system.
The error is thrown when it is provided as an input for "*PreferredToTerms*"
column but not for "*PreferredTerms*" column
{code:java}
GlossaryName, TermName, ShortDescription, LongDescription, Examples,
Abbreviation, Usage, AdditionalAttributes, TranslationTerms, ValidValuesFor,
Synonyms, ReplacedBy, ValidValues, ReplacementTerms, SeeAlso, TranslatedTerms,
IsA, Antonyms, Classifies, PreferredToTerms, PreferredTerms
dharsh,term_1,"short desc","long description", "Example", "G1", "Usage",
"glossary:100%",,,,,,,,,,,,,"abcd:efgh"
dharsh,term_2,"short desc","long description", "Example", "G1", "Usage",
"glossary:100%",,,,,,,,,,,,"abcd:efgh", {code}
*Expectation:*
2 failed message info should be thrown one for term_1(incorrect PreferredTerms)
and the other for term_2(incorrect PreferredToTerms), but only 1 is thrown
*Current output:*
{code:java}
{
"failedImportInfoList": [
{
"parentObjectName": "dharsh",
"childObjectName": "term_2",
"importStatus": "FAILED",
"remarks": "The provided Reference efgh@abcd does not exist at Atlas
referred at record with TermName : term_2 and GlossaryName : dharsh"
}
],
"successImportInfoList": [
{
"parentObjectName": "dharsh",
"childObjectName": "term_1",
"importStatus": "SUCCESS",
"remarks":
"{\"termGuid\":\"284fe9a7-911c-423a-90bf-adf8231afb27\",\"qualifiedName\":\"term_1@dharsh\"}"
},
{
"parentObjectName": "dharsh",
"childObjectName": "term_2",
"importStatus": "SUCCESS",
"remarks":
"{\"termGuid\":\"29a51c8a-ce92-4988-8fca-feaf683c58dd\",\"qualifiedName\":\"term_2@dharsh\"}"
}
]
} {code}
> [Atlas: Glossary Term Bulk Import] When there an incorrect data in preferred
> term column, it is not considered while importing
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-4275
> URL: https://issues.apache.org/jira/browse/ATLAS-4275
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Reporter: Dharshana M Krishnamoorthy
> Priority: Major
>
> When there is an error in the PreferredTerms of the input, error is not
> considered
> Consider the following input. Here the provided term "abcd:efgh" does not
> exists in the system.
> The error is thrown when it is provided as an input for "*PreferredToTerms*"
> column but not for "*PreferredTerms*" column
> {code:java}
> GlossaryName, TermName, ShortDescription, LongDescription, Examples,
> Abbreviation, Usage, AdditionalAttributes, TranslationTerms, ValidValuesFor,
> Synonyms, ReplacedBy, ValidValues, ReplacementTerms, SeeAlso,
> TranslatedTerms, IsA, Antonyms, Classifies, PreferredToTerms, PreferredTerms
> dharsh,term_1,"short desc","long description", "Example", "G1", "Usage",
> "glossary:100%",,,,,,,,,,,,,"abcd:efgh"
> dharsh,term_2,"short desc","long description", "Example", "G1", "Usage",
> "glossary:100%",,,,,,,,,,,,"abcd:efgh", {code}
>
> *Expectation:*
> 2 failed message info should be thrown one for term_1(incorrect
> PreferredTerms) and the other for term_2(incorrect PreferredToTerms), but
> only 1 is thrown
>
> *Current output:*
> {code:java}
> {
> "failedImportInfoList": [
> {
> "parentObjectName": "dharsh",
> "childObjectName": "term_2",
> "importStatus": "FAILED",
> "remarks": "The provided Reference efgh@abcd does not exist at Atlas
> referred at record with TermName : term_2 and GlossaryName : dharsh"
> }
> ],
> "successImportInfoList": [
> {
> "parentObjectName": "dharsh",
> "childObjectName": "term_1",
> "importStatus": "SUCCESS",
> "remarks":
> "{\"termGuid\":\"284fe9a7-911c-423a-90bf-adf8231afb27\",\"qualifiedName\":\"term_1@dharsh\"}"
> },
> {
> "parentObjectName": "dharsh",
> "childObjectName": "term_2",
> "importStatus": "SUCCESS",
> "remarks":
> "{\"termGuid\":\"29a51c8a-ce92-4988-8fca-feaf683c58dd\",\"qualifiedName\":\"term_2@dharsh\"}"
> }
> ]
> } {code}
>
> *Expected output:*
> {code:java}
> {
> "failedImportInfoList": [
> {
> "parentObjectName": "dharsh",
> "childObjectName": "term_1",
> "importStatus": "FAILED",
> "remarks": "The provided Reference efgh@abcd does not exist at Atlas
> referred at record with TermName : term_1 and GlossaryName : dharsh"
> },
> {
> "parentObjectName": "dharsh",
> "childObjectName": "term_2",
> "importStatus": "FAILED",
> "remarks": "The provided Reference efgh@abcd does not exist at Atlas
> referred at record with TermName : term_2 and GlossaryName : dharsh"
> }
> ],
> "successImportInfoList": [
> {
> "parentObjectName": "dharsh",
> "childObjectName": "term_1",
> "importStatus": "SUCCESS",
> "remarks":
> "{\"termGuid\":\"284fe9a7-911c-423a-90bf-adf8231afb27\",\"qualifiedName\":\"term_1@dharsh\"}"
> },
> {
> "parentObjectName": "dharsh",
> "childObjectName": "term_2",
> "importStatus": "SUCCESS",
> "remarks":
> "{\"termGuid\":\"29a51c8a-ce92-4988-8fca-feaf683c58dd\",\"qualifiedName\":\"term_2@dharsh\"}"
> }
> ]
> } {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)