| The "GitHub users mapping" table of the Security Advisory administration ("Administer Wiki" > "Other" > "Security Advisory") is empty by default, even when imported advisories involve GitHub users. An administrator therefore never sees the GitHub users to map or ignore, unless they clear the "Ignored" filter by hand. Steps to reproduce
- Import advisories from GitHub, so that some GitHub users are registered (one hidden page per user under SecurityAdvisoryApplication.Code.ExternalUsers).
- Open "Administer Wiki" > "Other" > "Security Advisory" and look at the "GitHub users mapping" table.
Expected: the GitHub users that are not ignored are listed. Actual: "Entries 0 - 0 out of 0". Clearing the "Ignored" filter lists all of them, with an empty "Ignored" value. Cause The Live Data is declared with filters="archived=0", but ExternalUserMappingStore#register (and save in general) only sets hint, externalId and login on the ExternalUserMappingClass object: archived is never set, so it has no stored value and the filter excludes it. Only a user ignored then un-ignored gets archived=0. Either set archived to 0 when registering the external user (and migrate the existing pages), or make the filter match an empty value too. Introduced by SPAPP-25. |