Skip to content

CB-14148 remove nonsense "www" platform from Cordova listing#620

Merged
brody2consult merged 4 commits into
apache:masterfrom
brody2consult:cb-14148-remove-nonsense-www-platform
Aug 15, 2018
Merged

CB-14148 remove nonsense "www" platform from Cordova listing#620
brody2consult merged 4 commits into
apache:masterfrom
brody2consult:cb-14148-remove-nonsense-www-platform

Conversation

@brody2consult
Copy link
Copy Markdown

@brody2consult brody2consult commented Jun 26, 2018

Platforms affected

All

What does this PR do?

  • Remove nonsense "www" platform from listing in cordova platform ls
  • Verify proper attributes and behavior of platforms object

What testing has been done on this change?

  • Verified that the nonsense "www" member is removed in spec
  • Verified working properly in local copy of cordova-lib and cordova-cli projects
  • Verified that npm test completely passes (in CI)

Checklist

  • Reported an issue in the JIRA database
  • Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
  • Added automated test coverage as appropriate for this change.

@raphinesse
Copy link
Copy Markdown
Contributor

LGTM, though I'd feel better knowing why this was in there in the first place. Could not find out anything about it using blame. 😒

@raphinesse
Copy link
Copy Markdown
Contributor

@dpogue @stevengill do you have any idea what the www platform's purpose is or was?

@dpogue
Copy link
Copy Markdown
Member

dpogue commented Jul 12, 2018

I do not 😞

@raphinesse raphinesse requested a review from stevengill July 26, 2018 08:28
@brody2consult brody2consult force-pushed the cb-14148-remove-nonsense-www-platform branch from 7aebd79 to 099ce78 Compare August 6, 2018 13:08

it('should *not* include nonsense "www" platform (CB-14148)', function () {
expect(platforms.www).not.toBeDefined();
});
Copy link
Copy Markdown
Contributor

@raphinesse raphinesse Aug 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been battling needlessly verbose tests. Would you be OK if we merge the last three tests to the following?

it('should have all and only the supported platforms', function () {
    expect(Object.keys(platforms)).toEqual(jasmine.arrayWithExactContents([
        'android', 'browser', 'ios', 'osx', 'windows'
    ]));
});

With that change, I'd approve this PR. I think we should just risk removing the www platform.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to incorporate that change?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I can incorporate the change later today. I would also like this PR to land with a commit message that will indicate what we did to the user in the RELEASENOTES, kinda like the way I updated the title.

@brody2consult brody2consult changed the title CB-14148 remove nonsense "www" platform from listing CB-14148 remove nonsense "www" platform from Cordova listing Aug 15, 2018
@brody2consult brody2consult removed the request for review from stevengill August 15, 2018 19:32
@brody2consult brody2consult force-pushed the cb-14148-remove-nonsense-www-platform branch from 099ce78 to d200905 Compare August 15, 2018 19:48
@brody2consult brody2consult merged commit bd92683 into apache:master Aug 15, 2018
@brody2consult brody2consult deleted the cb-14148-remove-nonsense-www-platform branch August 15, 2018 19:52
@brody2consult
Copy link
Copy Markdown
Author

Now merged with test cases merged as proposed by @raphinesse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants