You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by mariapython <gi...@git.apache.org> on 2016/09/25 06:07:01 UTC

[GitHub] incubator-beam pull request #1001: Add annotation to mark deprecated or expe...

GitHub user mariapython opened a pull request:

    https://github.com/apache/incubator-beam/pull/1001

    Add annotation to mark deprecated or experimental APIs via decorators.

    Provide users a warning when they call a deprecated or experimental API. 
    TODO (@mariapython):
    - [x] Implement a decorator to deprecated APIs. The decorator takes a 'since' parameter to inform of when the API was deprecated and can also take a 'current' parameter with a suggested API replacement.
    - [x] Implement a decorator to experimental APIs. The decorator can take a 'current' parameter with a suggested API replacement.
    - [x] Implement unit tests for the different parameter options and to limit the warning to just one per call.
    - [ ] Discuss the necessity of decorating deprecated/experimental classes.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mariapython/incubator-beam python-sdk-ann

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-beam/pull/1001.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1001
    
----
commit 5fbe711b44e5ec07c0a4f85bc4de09375666a993
Author: Maria Garcia Herrero <ma...@google.com>
Date:   2016-09-24T09:05:46Z

    Add annotation to mark deprecated or experimental APIs via decorators.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-beam pull request #1001: [BEAM-528] Add warning to deprecated / ex...

Posted by mariapython <gi...@git.apache.org>.
Github user mariapython closed the pull request at:

    https://github.com/apache/incubator-beam/pull/1001


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---