Skip to content

Conversation

rpkilby
Copy link

@rpkilby rpkilby commented Sep 15, 2017

Hi @carltongibson - was just trying to recreate the noise from the deprecation warnings on my machine. In the process, also added assertions for the msg.

Copy link
Owner

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

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

Yep. Great.

fmt = ("{}. The `APIView.exclude_from_schema` is pending deprecation. "
"Set `schema = None` instead")
fmt = ("The `APIView.exclude_from_schema` is pending deprecation. "
"Set `schema = None` instead in `{}`.")
Copy link
Owner

Choose a reason for hiding this comment

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

Just before I merge this...

I put the class name first so it would be more obvious in the console.

Last it could be all the way ..................................................................................................................................................................................................................over here.

What do you think?

Copy link
Owner

Choose a reason for hiding this comment

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

@rpkilby PING 🙂

Copy link
Author

Choose a reason for hiding this comment

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

That's fair. Maybe APIView.exclude_from_schema => ClassName.exclude_from_schema?

Copy link
Author

Choose a reason for hiding this comment

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

I mostly made the change b/c the class name on its own read a little oddly.

Copy link
Owner

Choose a reason for hiding this comment

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

OK. Do that and we'll go. 👍

Copy link
Author

Choose a reason for hiding this comment

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

Updated.

@rpkilby rpkilby force-pushed the deprecate-exclude_from_schema branch from 6bb3f25 to 492bb3d Compare September 15, 2017 11:19
@carltongibson carltongibson merged commit 0cd24b4 into carltongibson:deprecate-exclude_from_schema Sep 15, 2017
@rpkilby rpkilby deleted the deprecate-exclude_from_schema branch September 15, 2017 11:25
carltongibson pushed a commit that referenced this pull request Sep 22, 2017
* Add tests for schema exclusions

* Move exclusion check to should_include_endpoint

* Update docs

* Switch to using `schema = None`

* Test PendingDeprecationWarnings

* Add note to release notes.

* s/deprecated/pending deprecation/

* Add PR link to release notes

* Correct typo in test class name

* Test 'exclude_from_schema' deprecation warning message (#1)

* Correct deprecation warning message
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.

2 participants