Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain pronouns on the user table to increase inclusivity #459

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion b02cf9e61b861d10d806dc23b24bcb3f/checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
X1NRvjwxs0od9dl7o8x8TJKGDW-1XcvrtaWNPJtN8j7xtRw17VMdAn_h3-53esZH05QfV-tD9S6cbLBezbHzOlkyDDGmvWoJGQNi571Y6tIII0MBhyjKBxCeIq-cpx0jXyNZ_yer-jbs4VsLDuUc45qJj0XS8w4T7KpHUpaZhAgenqgQDeBkP-i_tnFT8zBWk3Bx0MNmfca4yhS8NnDkn-CiJ-KFA44guyfnLDQc3f2AIMmK5L_tfkJskeAzhHlVWVXXfV59MWByMS6XWjxmKRjkr8OhEi-agClzlza1Ka8PHpAOTqSgTkm4tMw29ND7Fr4jr8bGYtpuSpLd6WiurWHSDo8pCCpm65_EQTHCezqgokX0mWU4pHhMSJcIWc5J-CLDCf93gQnlM6qlfKw8LyyExPpQjGlfJrCHarh5YxjZbd_qFNsFt4AcRy0DQNbd9m1AGspNl1QuH7SDjw3oCysmaNZa3Tk1hQ2T4uzL4wDqOaVMHf1EHVqI-YQIv-5MPtOlP1DvK6daMjxhJ7lip1cTOxMG5J-AQEDWQIHsbTwEwK67su9-V1m9HIgv1fxNBNsnUuUG3QErGx36xxIfn90vUHN3vfa8u5n83SsKKcs8Pl6Md2zthr9LYUACKH-yzjXwctv-JyG5n6Ap1tSwiI_CeV_bWYrJt-Ok4wEroDs
FMnDKTnj29fo7iD7UYS-j9oTOC9uOUZMzH7pdgqrpZlwybDRakyvFFtYDU2x-diGkBhb-u0ra_PQAKbCmw4z5v1QQKQRd3JnIJUmsD2xGIvHNSaPXusgnhRsHiwukXErp6JS442uoQlacx0vvr6qFN1arcEVAkaf5785evXIBe0cy--L8pearIgGD3funyWQDUNyyXs1sENqQFZP3Q3Mv1T1KCPNQiNf3_sQ3Zi9LrF_F2f8mEKImMd0UbSzmSHu5LBqDcXZMe_fYqoxv24VSGlUjTKiE4lHuNH2Wdr_T3ULFHsErPvH-xb3IbyYE9F2CrAh3oNGIMRZIn7xMV3ZnD1PzYE3L7hKElI3fabgQSU9Y8p2MB_EopbzNZCeS_pKafjtXUefvCo1FfFCQc9DLzqjKhAdDPoxf9hkYZDgp3DEFwmIa7rxjyQCEApwHGK_vikKhJVOMUsXkc4Pe593TJ-nVWMDdCSUXRrwLOOJLRSsJy2zF1PCd8tAv8JW2v-jtAYqQZ26huFKKJIoF0AlFjeTCC5ajVOOAT3ndoQa__routNl2yk2x8hB-tUvHFKtbPE6f5dlnmcwwlZzzBwmeJ0JbKNOipTRwfCaclYo6LJK3NHMF2wR5pYt4TPm5qIoyj0mtJHKk9H88b6Qza0yx12mXp3W_S7HjtVCG7SVg2Q
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?><database>
<element db_object_id="56bc752a1b861d10d806dc23b24bcbc3" label="User" max_length="40" name="x_snc_slackerbot_user" type="collection">
<element label="Admin information" max_length="1000" name="admin_info" type="string"/>
<element display="true" label="Name" max_length="128" name="name" type="string"/>
<element default="javascript: new GlideDateTime();" label="Name updated" max_length="40" name="name_updated" type="glide_date_time"/>
<element label="User ID" max_length="40" name="user_id" read_only="true" type="string"/>
<element label="Pronouns" max_length="128" name="pronouns" type="string"/>
<element display="true" label="Name" max_length="128" name="name" type="string"/>
<element label="User information" max_length="1000" name="user_info" type="string"/>
<element default="javascript: new GlideDateTime();" label="Name updated" max_length="40" name="name_updated" type="glide_date_time"/>
<element label="Identity verified" max_length="40" name="verified" type="boolean"/>
<element label="Admin information" max_length="1000" name="admin_info" type="string"/>
</element>
</database>
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?><record_update>
<sys_dictionary action="INSERT_OR_UPDATE" element="pronouns" table="x_snc_slackerbot_user">
<active>true</active>
<array>false</array>
<attributes/>
<audit>false</audit>
<calculation><![CDATA[(function calculatedFieldValue(current) {

// Add your code here
return ''; // return the calculated value

})(current);]]></calculation>
<choice/>
<choice_field/>
<choice_table/>
<column_label>Pronouns</column_label>
<comments/>
<create_roles/>
<default_value/>
<defaultsort/>
<delete_roles/>
<dependent/>
<dependent_on_field/>
<display>false</display>
<dynamic_creation>false</dynamic_creation>
<dynamic_creation_script/>
<dynamic_default_value/>
<dynamic_ref_qual/>
<element>pronouns</element>
<element_reference>false</element_reference>
<foreign_database/>
<formula/>
<function_definition/>
<function_field>false</function_field>
<internal_type display_value="String">string</internal_type>
<mandatory>false</mandatory>
<max_length>128</max_length>
<name>x_snc_slackerbot_user</name>
<next_element/>
<primary>false</primary>
<read_only>false</read_only>
<read_roles/>
<reference/>
<reference_cascade_rule/>
<reference_floats>false</reference_floats>
<reference_key/>
<reference_qual/>
<reference_qual_condition/>
<reference_type/>
<spell_check>false</spell_check>
<staged>false</staged>
<sys_class_name>sys_dictionary</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-11-01 02:13:23</sys_created_on>
<sys_name>Pronouns</sys_name>
<sys_package display_value="SlackerBot" source="x_snc_slackerbot">b02cf9e61b861d10d806dc23b24bcb3f</sys_package>
<sys_policy/>
<sys_scope display_value="SlackerBot">b02cf9e61b861d10d806dc23b24bcb3f</sys_scope>
<sys_update_name>sys_dictionary_x_snc_slackerbot_user_pronouns</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-11-01 02:13:54</sys_updated_on>
<table_reference>false</table_reference>
<text_index>false</text_index>
<unique>false</unique>
<use_dependent_field>false</use_dependent_field>
<use_dynamic_default>false</use_dynamic_default>
<use_reference_qualifier>simple</use_reference_qualifier>
<virtual>false</virtual>
<virtual_type>script</virtual_type>
<widget/>
<write_roles/>
<xml_view>false</xml_view>
</sys_dictionary>
</record_update>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?><record_update>
<sys_documentation element="pronouns" label="Pronouns" language="en" table="x_snc_slackerbot_user">
<sys_documentation action="INSERT_OR_UPDATE">
<element>pronouns</element>
<help/>
<hint/>
<label>Pronouns</label>
<language>en</language>
<name>x_snc_slackerbot_user</name>
<plural>Pronouns</plural>
<sys_class_name>sys_documentation</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-11-01 02:13:23</sys_created_on>
<sys_mod_count>0</sys_mod_count>
<sys_name>Pronouns</sys_name>
<sys_package display_value="SlackerBot" source="x_snc_slackerbot">b02cf9e61b861d10d806dc23b24bcb3f</sys_package>
<sys_policy/>
<sys_scope display_value="SlackerBot">b02cf9e61b861d10d806dc23b24bcb3f</sys_scope>
<sys_update_name>sys_documentation_x_snc_slackerbot_user_pronouns_en</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-11-01 02:13:23</sys_updated_on>
<url/>
<url_target/>
</sys_documentation>
</sys_documentation>
</record_update>
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Slacker.prototype = {
grupdate.get(record_id);
grupdate.setValue('name', response_body.user.real_name);
grupdate.setValue('name_updated', new GlideDateTime());
grupdate.setValue('pronouns', response_body.user.profile.pronouns);
grupdate.update();
return true;
} else {
Expand Down Expand Up @@ -188,14 +189,14 @@ Slacker.prototype = {
<sys_created_by>earl.duque</sys_created_by>
<sys_created_on>2022-09-23 06:06:00</sys_created_on>
<sys_id>b2c246ae1b861d10d806dc23b24bcbac</sys_id>
<sys_mod_count>13</sys_mod_count>
<sys_mod_count>16</sys_mod_count>
<sys_name>Slacker</sys_name>
<sys_package display_value="SlackerBot" source="x_snc_slackerbot">b02cf9e61b861d10d806dc23b24bcb3f</sys_package>
<sys_policy>read</sys_policy>
<sys_scope display_value="SlackerBot">b02cf9e61b861d10d806dc23b24bcb3f</sys_scope>
<sys_update_name>sys_script_include_b2c246ae1b861d10d806dc23b24bcbac</sys_update_name>
<sys_updated_by>asteroid</sys_updated_by>
<sys_updated_on>2024-10-20 09:41:16</sys_updated_on>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-11-01 02:27:15</sys_updated_on>
</sys_script_include>
<sys_es_latest_script action="INSERT_OR_UPDATE">
<id>b2c246ae1b861d10d806dc23b24bcbac</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,20 @@
<sys_user/>
<type/>
</sys_ui_element>
<sys_ui_element action="INSERT_OR_UPDATE">
<element>pronouns</element>
<position>6</position>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-11-01 02:13:23</sys_created_on>
<sys_id>e8086e16c3e512108fcc190ed401312b</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_ui_formatter/>
<sys_ui_section caption="NULL" display_value="" name="x_snc_slackerbot_user" sys_domain="global" view="Default view">73be4e2a1bc61d10d806dc23b24bcb99</sys_ui_section>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-11-01 02:13:23</sys_updated_on>
<sys_user/>
<type/>
</sys_ui_element>
<sys_ui_section action="INSERT_OR_UPDATE">
<caption/>
<header>false</header>
Expand Down
Loading