# Extend number\_change admin command for changing sgx

**URL:** <https://hub.soprani.ca/t/extend-number-change-admin-command-for-changing-sgx/319>\
**Category:** Issues\
**Tags:** implemented, sgx-jmp\
**Created:** [July 7, 2025, 8:34pm UTC](https://hub.soprani.ca/t/extend-number-change-admin-command-for-changing-sgx/319 "2025-07-07T20:34:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [July 7, 2025, 8:34pm UTC](https://hub.soprani.ca/t/extend-number-change-admin-command-for-changing-sgx/319/1 "2025-07-07T20:34:44Z")

</div>

Add an optional text field to the form for what the backend sgx should be.

If not set, assume not changing (so same as customer currently).

Steps:

```auto
If target number != current number, rename fwd key
@sgx.deregister!
Set backend sgx redis key (or delete if setting to default)
@sgx.register!(new_tel)
If should_delete? && first_time && old_tel != new_tel && old sgx was bwmsgsv2 then disconnect old_tel

```

Note currently it checks for old\_tel == new\_tel as the only condition for no-op. Need to also check that backend is also not changing before we consider the command a no-op.

Ideally chat with psycotica0 a bit this is his area.

---

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [July 14, 2025, 7:21pm UTC](https://hub.soprani.ca/t/extend-number-change-admin-command-for-changing-sgx/319/2 "2025-07-14T19:21:48Z")

</div>

Blocked pending: [Extend number\_change admin command for changing sgx - Issues - Sopranica](https://soprani.ca/todo/413)

---

<div class="post-metadata">

**Author:** ![phdavis1027](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@phdavis1027](https://hub.soprani.ca/u/phdavis1027)\
**Post date:** [August 14, 2025, 6:25pm UTC](https://hub.soprani.ca/t/extend-number-change-admin-command-for-changing-sgx/319/3 "2025-08-14T18:25:33Z")

</div>

[Extend number\_change admin command for changing sgx - Issues - Sopranica](https://soprani.ca/todo/413) completed, let’s roll
