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

PROD-4399 - remove sprig integration -> develop #6918

Merged
merged 2 commits into from
Oct 2, 2023
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
1 change: 0 additions & 1 deletion config/backup-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,5 +473,4 @@ module.exports = {
},
/* development id - makes surveys have warning about environment */
UNIVERSAL_NAV_URL: '//uni-nav.topcoder-dev.com/v1/tc-universal-nav.js',
SPRIG_ENVIRONMENT_ID: 'bUcousVQ0-yF',
};
1 change: 0 additions & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,5 +477,4 @@ module.exports = {
MEMBER_PROFILE_REDIRECT_URL: 'https://profiles.topcoder-dev.com',
MEMBER_SEARCH_REDIRECT_URL: 'https://talent-search.topcoder-dev.com',
ACCOUNT_SETTINGS_REDIRECT_URL: 'https://account-settings.topcoder-dev.com',
SPRIG_ENVIRONMENT_ID: 'bUcousVQ0-yF',
};
1 change: 0 additions & 1 deletion config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,5 @@ module.exports = {
UNIVERSAL_NAV_URL: '//uni-nav.topcoder.com/v1/tc-universal-nav.js',
MEMBER_PROFILE_REDIRECT_URL: 'https://profiles.topcoder.com',
MEMBER_SEARCH_REDIRECT_URL: 'https://talent-search.topcoder.com',
SPRIG_ENVIRONMENT_ID: 'a-IZBZ6-r7bU',
ACCOUNT_SETTINGS_REDIRECT_URL: 'https://account-settings.topcoder.com',
};
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"dependencies": {
"@hapi/joi": "^16.1.4",
"@optimizely/react-sdk": "^2.5.0",
"@sprig-technologies/sprig-browser": "^2.20.1",
"@topcoder-platform/tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.4",
"aos": "^2.3.4",
"atob": "^2.1.1",
Expand Down
8 changes: 1 addition & 7 deletions src/client/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@ import {
getFreshToken,
} from '@topcoder-platform/tc-auth-lib';
import { actions, logger, errors } from 'topcoder-react-lib';
import { client, redux, config } from 'topcoder-react-utils';
import { sprig } from '@sprig-technologies/sprig-browser/dist';
import { client, redux } from 'topcoder-react-utils';

import './styles.scss';

const Sprig = sprig.configure({
environmentId: config.SPRIG_ENVIRONMENT_ID,
});

const { setErrorsStore } = errors;

/**
Expand Down Expand Up @@ -60,7 +55,6 @@ function identify(profile, roles, userIdHash) {
integrations: { All: false, Chameleon: true },
},
);
Sprig('setUserId', profile.handle);
}

/**
Expand Down
8 changes: 0 additions & 8 deletions src/shared/containers/SubmissionPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/
import actions from 'actions/page/submission';
import { actions as api } from 'topcoder-react-lib';
import { config } from 'topcoder-react-utils';
import { isMM } from 'utils/challenge';
import communityActions from 'actions/tc-communities';
import { PrimaryButton } from 'topcoder-react-ui-kit';
Expand All @@ -19,11 +18,6 @@ import { connect } from 'react-redux';
import SubmissionsPage from 'components/SubmissionPage';
import AccessDenied, { CAUSE as ACCESS_DENIED_REASON } from 'components/tc-communities/AccessDenied';
import LoadingIndicator from 'components/LoadingIndicator';
import { sprig } from '@sprig-technologies/sprig-browser/dist';

export const Sprig = sprig.configure({
environmentId: config.SPRIG_ENVIRONMENT_ID,
});

/**
* SubmissionsPage Container
Expand Down Expand Up @@ -71,8 +65,6 @@ class SubmissionsPageContainer extends React.Component {
track,
} = this.props;

// On final upload, the survey should appear
Sprig('track', 'onUploadSubmission');
submit(tokenV3, tokenV2, challengeId, body, isMM(challenge) ? 'DEVELOP' : track);
}

Expand Down
Loading