)]}'
{"doc/source/gerrit.rst":[{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"8f90be43e3fead0031e787a36af138a27684e260","unresolved":true,"context_lines":[{"line_number":462,"context_line":"----------------------------"},{"line_number":463,"context_line":""},{"line_number":464,"context_line":"If a user has two accounts, we can not combine them.  We can only"},{"line_number":465,"context_line":"deactivate one of them."},{"line_number":466,"context_line":""},{"line_number":467,"context_line":"For example, user ``foo`` has an account ``foo@company.com`` and moves"},{"line_number":468,"context_line":"to a new job, creating a new account ``foo@new.com``.  They log-in"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9cd5638f_bbe9550d","line":465,"updated":"2021-08-11 22:29:02.000000000","message":"Note we can start merging them again once we\u0027ve gotten the conflicts cleaned up in the notedb. Happy to land this as is then update the doc when merging is possible though.","commit_id":"c86b825fcc90836b982665db2269d0688c62e73d"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"8138b91bbb24d70e9a2c4a93db3b8877325f53a4","unresolved":true,"context_lines":[{"line_number":462,"context_line":"----------------------------"},{"line_number":463,"context_line":""},{"line_number":464,"context_line":"If a user has two accounts, we can not combine them.  We can only"},{"line_number":465,"context_line":"deactivate one of them."},{"line_number":466,"context_line":""},{"line_number":467,"context_line":"For example, user ``foo`` has an account ``foo@company.com`` and moves"},{"line_number":468,"context_line":"to a new job, creating a new account ``foo@new.com``.  They log-in"}],"source_content_type":"text/x-rst","patch_set":1,"id":"05071ca4_dd9c9866","line":465,"in_reply_to":"9cd5638f_bbe9550d","updated":"2021-08-11 22:37:21.000000000","message":"ok; yeah probably best to keep this with what works for now and upate","commit_id":"c86b825fcc90836b982665db2269d0688c62e73d"},{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"8f90be43e3fead0031e787a36af138a27684e260","unresolved":true,"context_lines":[{"line_number":497,"context_line":".."},{"line_number":498,"context_line":""},{"line_number":499,"context_line":"  git commit -m \"Make duplicate account inactive\" --author \u003cyour@email.com\u003e"},{"line_number":500,"context_line":"  git push origin HEAD:refs/users/45/12345"},{"line_number":501,"context_line":""},{"line_number":502,"context_line":"There will still be an OpenID external ID associated with this now"},{"line_number":503,"context_line":"inactive account.  This will prevent adding ``foo@new.com`` to another"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ca67cb78_baa7ad12","line":500,"updated":"2021-08-11 22:29:02.000000000","message":"We should add a note that this push requires the user be in Project BootStrappers since I always trip over that.","commit_id":"c86b825fcc90836b982665db2269d0688c62e73d"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"8138b91bbb24d70e9a2c4a93db3b8877325f53a4","unresolved":false,"context_lines":[{"line_number":497,"context_line":".."},{"line_number":498,"context_line":""},{"line_number":499,"context_line":"  git commit -m \"Make duplicate account inactive\" --author \u003cyour@email.com\u003e"},{"line_number":500,"context_line":"  git push origin HEAD:refs/users/45/12345"},{"line_number":501,"context_line":""},{"line_number":502,"context_line":"There will still be an OpenID external ID associated with this now"},{"line_number":503,"context_line":"inactive account.  This will prevent adding ``foo@new.com`` to another"}],"source_content_type":"text/x-rst","patch_set":1,"id":"f43d886c_cbfd336a","line":500,"in_reply_to":"ca67cb78_baa7ad12","updated":"2021-08-11 22:37:21.000000000","message":"Done","commit_id":"c86b825fcc90836b982665db2269d0688c62e73d"},{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"8f90be43e3fead0031e787a36af138a27684e260","unresolved":true,"context_lines":[{"line_number":515,"context_line":""},{"line_number":516,"context_line":".."},{"line_number":517,"context_line":""},{"line_number":518,"context_line":"  curl -XPOST  -u ianw.admin -i -H \"Content-Type: application/json\" -d \u0027[\"https://login.ubuntu.com/+id/RaND0m\"]\u0027 https://review.opendev.org/a/accounts/12345/external.ids:delete"},{"line_number":519,"context_line":""},{"line_number":520,"context_line":"The user should now be able to add ``foo@new.com`` to their old"},{"line_number":521,"context_line":"account."}],"source_content_type":"text/x-rst","patch_set":1,"id":"30fac26f_19dbd95a","line":518,"range":{"start_line":518,"start_character":18,"end_line":518,"end_character":22},"updated":"2021-08-11 22:29:02.000000000","message":"Should be you to match the earlier examples.","commit_id":"c86b825fcc90836b982665db2269d0688c62e73d"},{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"8138b91bbb24d70e9a2c4a93db3b8877325f53a4","unresolved":false,"context_lines":[{"line_number":515,"context_line":""},{"line_number":516,"context_line":".."},{"line_number":517,"context_line":""},{"line_number":518,"context_line":"  curl -XPOST  -u ianw.admin -i -H \"Content-Type: application/json\" -d \u0027[\"https://login.ubuntu.com/+id/RaND0m\"]\u0027 https://review.opendev.org/a/accounts/12345/external.ids:delete"},{"line_number":519,"context_line":""},{"line_number":520,"context_line":"The user should now be able to add ``foo@new.com`` to their old"},{"line_number":521,"context_line":"account."}],"source_content_type":"text/x-rst","patch_set":1,"id":"2961743c_f7ffb682","line":518,"range":{"start_line":518,"start_character":18,"end_line":518,"end_character":22},"in_reply_to":"30fac26f_19dbd95a","updated":"2021-08-11 22:37:21.000000000","message":"Done","commit_id":"c86b825fcc90836b982665db2269d0688c62e73d"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"0c1054bfffd8984b4ad497335ece95a1f1768f78","unresolved":false,"context_lines":[{"line_number":456,"context_line":"Deleting Accounts in Gerrit"},{"line_number":457,"context_line":"---------------------------"},{"line_number":458,"context_line":""},{"line_number":459,"context_line":"We can not delete accounts.  They can be made inactive."},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"Duplicate Accounts in Gerrit"},{"line_number":462,"context_line":"----------------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"136d16dc_387faf91","line":459,"updated":"2021-08-11 22:50:14.000000000","message":"Which we have a section for if you want to link to the `Deactivating a Gerrit account` heading from here.","commit_id":"d4ba30251bbc3196d16608592ab54d4bd02d2272"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"0c1054bfffd8984b4ad497335ece95a1f1768f78","unresolved":false,"context_lines":[{"line_number":492,"context_line":"  git checkout FETCH_HEAD"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":"Edit the ``[account]`` section of ``account.conf`` to remove"},{"line_number":495,"context_line":"``preferredEmail`` and have a line ``active \u003d false``.  Put your admin"},{"line_number":496,"context_line":"account into ``Project Bootstrappers`` (see :ref:`sysadmin`) and"},{"line_number":497,"context_line":"commit this"},{"line_number":498,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3baa1100_3add74e5","line":495,"updated":"2021-08-11 22:50:14.000000000","message":"I guess updating \"active\" here saves us from separately needing to do that through the API/CLI.","commit_id":"d4ba30251bbc3196d16608592ab54d4bd02d2272"},{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"027536798ec013c1c613135baec2138be426463b","unresolved":false,"context_lines":[{"line_number":492,"context_line":"  git checkout FETCH_HEAD"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":"Edit the ``[account]`` section of ``account.conf`` to remove"},{"line_number":495,"context_line":"``preferredEmail`` and have a line ``active \u003d false``.  Put your admin"},{"line_number":496,"context_line":"account into ``Project Bootstrappers`` (see :ref:`sysadmin`) and"},{"line_number":497,"context_line":"commit this"},{"line_number":498,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"adc0df56_a79cc57f","line":495,"in_reply_to":"3baa1100_3add74e5","updated":"2021-08-11 22:53:04.000000000","message":"Yes we need to remove the preferred email address to maintain consistency between the user ref and the external ids ref when we delete the external id. If we don\u0027t remove the preferred email here then we create a database error where the preferred email address has no corresponding external id. While we are at it we may as well set the account to inactive.","commit_id":"d4ba30251bbc3196d16608592ab54d4bd02d2272"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"a458e88c606523ec9a17493f3543d3fb0c43cd34","unresolved":false,"context_lines":[{"line_number":509,"context_line":""},{"line_number":510,"context_line":".."},{"line_number":511,"context_line":""},{"line_number":512,"context_line":"  curl  -u you.admin -i -H \"Accept: application/json\" https://review.opendev.org/a/accounts/12345/external.ids"},{"line_number":513,"context_line":""},{"line_number":514,"context_line":"This will give a json result with an ``identity`` URL like"},{"line_number":515,"context_line":"``\"identity\":\"https://login.ubuntu.com/+id/RaND0m``.  Use this to"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5c561386_eb88dcb0","line":512,"updated":"2021-08-11 23:07:14.000000000","message":"I\u0027ve been sufficiently convinced that setting an HTTP password for an admin account is a reasonable tradeoff in situations where we\u0027re unable to perform these actions through the SSH CLI.","commit_id":"d4ba30251bbc3196d16608592ab54d4bd02d2272"},{"author":{"_account_id":5263,"name":"Jeremy Stanley","display_name":"fungi","email":"fungi@yuggoth.org","username":"fungi","status":"missing, presumed fed"},"change_message_id":"0c1054bfffd8984b4ad497335ece95a1f1768f78","unresolved":false,"context_lines":[{"line_number":509,"context_line":""},{"line_number":510,"context_line":".."},{"line_number":511,"context_line":""},{"line_number":512,"context_line":"  curl  -u you.admin -i -H \"Accept: application/json\" https://review.opendev.org/a/accounts/12345/external.ids"},{"line_number":513,"context_line":""},{"line_number":514,"context_line":"This will give a json result with an ``identity`` URL like"},{"line_number":515,"context_line":"``\"identity\":\"https://login.ubuntu.com/+id/RaND0m``.  Use this to"}],"source_content_type":"text/x-rst","patch_set":2,"id":"0b431685_b4746646","line":512,"updated":"2021-08-11 22:50:14.000000000","message":"This assumes our admin accounts have HTTP passwords, which we try to avoid. Instead this could be your normal account tempoarily added to the Administrators group.","commit_id":"d4ba30251bbc3196d16608592ab54d4bd02d2272"}]}
