Skip to content

Commit

Permalink
chore: disable rpa by default
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm authored and barmac committed Feb 18, 2025
1 parent a6cadfc commit 349a083
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion client/src/app/TabsProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ export default class TabsProvider {
delete this.providersByFileType.form;
}

if (Flags.get(DISABLE_RPA)) {
if (Flags.get(DISABLE_RPA, true)) {
delete this.providers.rpa;
delete this.providersByFileType.rpa;
}
Expand Down
3 changes: 1 addition & 2 deletions client/src/app/__tests__/EmptyTabSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ describe('<EmptyTab>', function() {
buttons.forEach(wrapper => wrapper.simulate('click'));

// then
expect(onAction).to.have.callCount(7);
expect(onAction).to.have.callCount(6);
expect(onAction.args).to.eql([
[ 'create-cloud-bpmn-diagram', undefined ],
[ 'create-cloud-dmn-diagram', undefined ],
[ 'create-cloud-form', undefined ],
[ 'create-diagram', { type: 'rpa' } ],
[ 'create-bpmn-diagram', undefined ],
[ 'create-dmn-diagram', undefined ],
[ 'create-form', undefined ]
Expand Down
25 changes: 19 additions & 6 deletions client/src/app/__tests__/TabsProviderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ describe('TabsProvider', function() {
it('should replace version placeholder with actual latest version (BPMN)', function() {

// given
Flags.init({
[DISABLE_RPA]: false
});

const tabsProvider = new TabsProvider();

const expectedPlatformVersion = getLatestStablePlatformVersion(ENGINES.PLATFORM);
Expand Down Expand Up @@ -478,6 +482,10 @@ describe('TabsProvider', function() {

it('should replace version placeholder with actual latest version (RPA)', function() {

Flags.init({
[DISABLE_RPA]: false
});

// given
const tabsProvider = new TabsProvider();

Expand Down Expand Up @@ -560,7 +568,8 @@ describe('TabsProvider', function() {

// given
Flags.init({
[DISABLE_CMMN]: false
[DISABLE_CMMN]: false,
[DISABLE_RPA]: false
});

const tabsProvider = new TabsProvider();
Expand Down Expand Up @@ -873,7 +882,8 @@ describe('TabsProvider', function() {

// given
Flags.init({
[DISABLE_CMMN]: false
[DISABLE_CMMN]: false,
[DISABLE_RPA]: false
});

const tabsProvider = new TabsProvider();
Expand Down Expand Up @@ -904,7 +914,7 @@ describe('TabsProvider', function() {
const providerNames = tabsProvider.getProviderNames();

// then
expect(providerNames).to.eql([ 'BPMN', 'DMN', 'FORM', 'RPA' ]);
expect(providerNames).to.eql([ 'BPMN', 'DMN', 'FORM' ]);

});

Expand All @@ -913,7 +923,8 @@ describe('TabsProvider', function() {

// given
Flags.init({
[DISABLE_CMMN]: false
[DISABLE_CMMN]: false,
[DISABLE_RPA]: false
});
const tabsProvider = new TabsProvider();

Expand All @@ -930,7 +941,8 @@ describe('TabsProvider', function() {

// given
Flags.init({
[DISABLE_PLATFORM]: true
[DISABLE_PLATFORM]: true,
[DISABLE_RPA]: false
});
const tabsProvider = new TabsProvider();

Expand Down Expand Up @@ -1263,7 +1275,8 @@ describe('TabsProvider', function() {

beforeEach(function() {
Flags.init({
[DISABLE_CMMN]: false
[DISABLE_CMMN]: false,
[DISABLE_RPA]: false
});

tabsProvider = new TabsProvider();
Expand Down

0 comments on commit 349a083

Please sign in to comment.