yetus-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karen Clark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (YETUS-294) release-doc-maker fails if some custom fields aren't defined on JIRA
Date Thu, 11 Aug 2016 02:08:20 GMT

     [ https://issues.apache.org/jira/browse/YETUS-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karen Clark reassigned YETUS-294:
---------------------------------

    Assignee:     (was: Karen Clark)

> release-doc-maker fails if some custom fields aren't defined on JIRA
> --------------------------------------------------------------------
>
>                 Key: YETUS-294
>                 URL: https://issues.apache.org/jira/browse/YETUS-294
>             Project: Yetus
>          Issue Type: Bug
>          Components: Release Doc Maker
>            Reporter: Kengo Seki
>
> YETUS-282 enables release-doc-maker to support JIRAs other than ASF's, but if these JIRAs
don't have custom fields such as "Hadoop Flags", "Flags" and "Release Note", it will fail.
> Examples using a local JIRA server:
> {code}
> [sekikn@mobile yetus]$ release-doc-maker/releasedocmaker.py --project test --version
0.1.0 --baseurl http://localhost:8080
> Traceback (most recent call last):
>   File "release-doc-maker/releasedocmaker.py", line 698, in <module>
>     main()
>   File "release-doc-maker/releasedocmaker.py", line 572, in main
>     if jira.get_incompatible_change():
>   File "release-doc-maker/releasedocmaker.py", line 284, in get_incompatible_change
>     field = self.parent.field_id_map['Hadoop Flags']
> KeyError: 'Hadoop Flags'
> (after the 'Hadoop Flags' field is defined)
> [sekikn@mobile yetus]$ release-doc-maker/releasedocmaker.py --project test --version
0.1.0 --baseurl http://localhost:8080
> Traceback (most recent call last):
>   File "release-doc-maker/releasedocmaker.py", line 698, in <module>
>     main()
>   File "release-doc-maker/releasedocmaker.py", line 574, in main
>     elif jira.get_important():
>   File "release-doc-maker/releasedocmaker.py", line 298, in get_important
>     field = self.parent.field_id_map['Flags']
> KeyError: 'Flags'
> (after the 'Flags' field is defined)
> [sekikn@mobile yetus]$ release-doc-maker/releasedocmaker.py --project test --version
0.1.0 --baseurl http://localhost:8080
> Traceback (most recent call last):
>   File "release-doc-maker/releasedocmaker.py", line 698, in <module>
>     main()
>   File "release-doc-maker/releasedocmaker.py", line 628, in main
>     if len(jira.get_release_note()) > 0:
>   File "release-doc-maker/releasedocmaker.py", line 216, in get_release_note
>     field = self.parent.field_id_map['Release Note']
> KeyError: 'Release Note'
> {code}
> Maybe we can assume that the "Release Note" field is defined because it's vital for release-doc-making,
but it'd be better that dependencies on other two custom fields are removed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message