Skip to content

Adds a date selection model - #17363

Merged
mmalerba merged 2 commits into
angular:date-selection-modelfrom
xlou978:xlou_date_time
Oct 11, 2019
Merged

Adds a date selection model#17363
mmalerba merged 2 commits into
angular:date-selection-modelfrom
xlou978:xlou_date_time

Conversation

@xlou978

@xlou978 xlou978 commented Oct 10, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@xlou978
xlou978 requested a review from mmalerba as a code owner October 10, 2019 20:39
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 10, 2019

@mmalerba mmalerba left a comment

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.

You'll need to run bazel run //tools/public_api_guard:material/core.d.ts_api.accept to mark that the API changes in this PR are intentional

import {Subject} from 'rxjs';

export abstract class MatDateSelectionModel<D> {
valueChangesSubject = new Subject<void>();

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.

This should be private and we still need the valueChanges Observable for the public API. Just when you're calling .complete() and .next() those methods only exist on the Subject

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since it's a private property, I won't be able to call this._valueChangesSubject in the derived classes.

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.

oh sorry, then you can make it protected, the important thing is its not part of the public API

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@xlou978
xlou978 requested a review from jelbourn as a code owner October 11, 2019 00:10
@xlou978

xlou978 commented Oct 11, 2019

Copy link
Copy Markdown
Contributor Author

My local tests all passed, not sure why the tests here are failing :-(

@mmalerba

Copy link
Copy Markdown
Contributor

I'm pretty sure that failure is just a flake, restarting it

@mmalerba mmalerba left a comment

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.

LGTM - good to go once the tests are green

@mmalerba
mmalerba merged commit c40a0fd into angular:date-selection-model Oct 11, 2019
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants