Merge pull request #15265 from CartoDB/update-industries

Update the list  of industry options
pull/15287/head
Alberto Romeu 5 years ago committed by GitHub
commit ce8e94cc7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,7 @@ Development
- Avoid warnings when running test in parallel with an empty environment
- Improve concurrent Ghost Tables syncs handling ([#15272](https://github.com/CartoDB/cartodb/pull/15272))
- Fix consent screen in OAuth apps without user ([#15247](https://github.com/CartoDB/cartodb/pull/15247))
- Update user industries options with the allowed values from Hubspot ([#15265](https://github.com/CartoDB/cartodb/pull/15265))
- ArcGIS connector: Stop skipping ids on failure
4.31.0 (2019-11-19)

@ -23,10 +23,11 @@ const REQUIRED_OPTS = [
// These lists must match the options of the correspondant Hubspot enumeration properties. They can be retrieved from:
// https://api.hubapi.com/properties/v1/contacts/properties/named/industry?hapikey=KEY
const INDUSTRIES = [
'Apparel & Fashion', 'Banking & Financial Services', 'Business Services', 'Consulting Services',
'Consumer & Retail', 'Education & Research', 'Energy & Mining', 'Government', 'Health & Medical', 'Insurance',
'Manufacturing', 'Marketing & Advertising', 'Natural Resources & Environment', 'Non-Profit', 'Other', 'Real Estate',
'Software & Technology', 'Transportation & Logistics', 'Utilities & Communications'
'Architecture, Engineering and Construction', 'Banking and Financial Services', 'Cities and Government',
'Consulting', 'CPG', 'Education and Research', 'Health and Medical', 'Insurance', 'Journalism and Media',
'Manufacturing', 'Marketing and Advertising', 'Mining', 'Natural Resources and Environment', 'Non-Profit',
'Real Estate', 'Retail', 'Software and Tech', 'Sports and Entertainment', 'Telecommunications',
'Transport and Logistics', 'Utilities', 'Other'
];
const COMPANY_EMPLOYEES_RANGES = ['1-5', '5-25', '25-50', '50-100', '100-500', '500-1000', '1000+'];

@ -119,7 +119,7 @@ describe('dashboard/views/profile/profile-form/profile-form-view', function () {
// Industry
const industryDropdown = view.$('#user_industry');
expect(industryDropdown.find('option').length).toBe(21);
expect(industryDropdown.find('option').length).toBe(24);
expect(industryDropdown.find('option:checked').text()).toContain(INDUSTRY);
});

Loading…
Cancel
Save