Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare Argument without validation. #602

Closed
proofit404 opened this issue Jan 29, 2021 · 0 comments · Fixed by #710
Closed

Declare Argument without validation. #602

proofit404 opened this issue Jan 29, 2021 · 0 comments · Fixed by #710
Labels
Milestone

Comments

@proofit404
Copy link
Owner

proofit404 commented Jan 29, 2021

Argument means: name could be both passed to the constructor and assigned by step.

from stories import Argument, State


class SubscribeState(State):
    category_id = Argument()

We allowed to do SubscribeState(category_id=1).

Wrapping story could assign arguments of the nested stories.

@proofit404 proofit404 added this to the New arguments. milestone Jan 29, 2021
@proofit404 proofit404 changed the title Argument placeholder. Declare Argument without validation. Jan 30, 2021
@proofit404 proofit404 linked a pull request Dec 1, 2021 that will close this issue
proofit404 pushed a commit that referenced this issue Dec 1, 2021
# 5.0.0-rc.1 (2021-12-01)

### Code Refactoring

* earthquake [#627](#627) 1dfff33

### Features

* add argument and variable placeholders [#704](#704) ae9c2a1
* declare argument without validation [#602](#602) e911340
* declare variable including validation [#606](#606) a99b41d
* declare variable without validation [#591](#591) ef5c574
* deny to assign undeclared variable [#680](#680) 1ac8a9e
* execute steps in given order [#664](#664) 2660ffd
* implement [@initiate](https://github.com/initiate) decorator [#324](#324) ed1a962
* implement [@initiate](https://github.com/initiate) restrictions [#649](#649) 1ecd93d
* propagate exceptions [#631](#631) b0e6fa0
* story call should return none [#630](#630) 7b5d9b2
* story steps could assign state variable [#693](#693) 60acffb

### BREAKING CHANGES

* The old codebase was removed. The library was redesigned
from scratch. A lot of existed functionality was removed. Contrib integrations
was moved to separate repositories. The goal of the library stays the same.
Allow to express domain knowledge inside codebase with minimal friction. The
approach we took is very similar with the old one but most of design flaws
was fixed in new version.
proofit404 pushed a commit that referenced this issue Dec 2, 2021
# 5.0.0-rc.1 (2021-12-02)

### Code Refactoring

* earthquake [#627](#627) 1dfff33

### Features

* add argument and variable placeholders [#704](#704) ae9c2a1
* declare argument without validation [#602](#602) e911340
* declare variable including validation [#606](#606) a99b41d
* declare variable without validation [#591](#591) ef5c574
* deny to assign undeclared variable [#680](#680) 1ac8a9e
* execute steps in given order [#664](#664) 2660ffd
* implement [@initiate](https://github.com/initiate) decorator [#324](#324) ed1a962
* implement [@initiate](https://github.com/initiate) restrictions [#649](#649) 1ecd93d
* propagate exceptions [#631](#631) b0e6fa0
* story call should return none [#630](#630) 7b5d9b2
* story steps could assign state variable [#693](#693) 60acffb

### BREAKING CHANGES

* The old codebase was removed. The library was redesigned
from scratch. A lot of existed functionality was removed. Contrib integrations
was moved to separate repositories. The goal of the library stays the same.
Allow to express domain knowledge inside codebase with minimal friction. The
approach we took is very similar with the old one but most of design flaws
was fixed in new version.
proofit404 pushed a commit that referenced this issue Dec 2, 2021
# 5.0.0-rc.1 (2021-12-02)

### Code Refactoring

* earthquake [#627](#627) 1dfff33

### Features

* add argument and variable placeholders [#704](#704) b88431a
* declare argument without validation [#602](#602) 95c12ef
* declare variable including validation [#606](#606) 3964f0a
* declare variable without validation [#591](#591) 49ffcc0
* deny to assign undeclared variable [#680](#680) 5b27e46
* execute steps in given order [#664](#664) 2660ffd
* implement [@initiate](https://github.com/initiate) decorator [#324](#324) ed1a962
* implement [@initiate](https://github.com/initiate) restrictions [#649](#649) 1ecd93d
* propagate exceptions [#631](#631) b0e6fa0
* story call should return none [#630](#630) 7b5d9b2
* story steps could assign state variable [#693](#693) 31dfa6b

### BREAKING CHANGES

* The old codebase was removed. The library was redesigned
from scratch. A lot of existed functionality was removed. Contrib integrations
was moved to separate repositories. The goal of the library stays the same.
Allow to express domain knowledge inside codebase with minimal friction. The
approach we took is very similar with the old one but most of design flaws
was fixed in new version.
github-actions bot pushed a commit that referenced this issue Jul 21, 2022
# 5.0.0 (2022-07-21)

### Code Refactoring

* earthquake [#627](#627) f2b793f

### Features

* add argument and variable placeholders [#704](#704) 24ed603
* declare argument including validation [#605](#605) ccc0308
* declare argument without validation [#602](#602) a599aec
* declare variable including validation [#606](#606) 670f879
* declare variable without validation [#591](#591) d760230
* deny to assign undeclared variable [#680](#680) b1a99aa
* deny to pass undeclared arguments [#681](#681) 9705232
* execute steps in given order [#664](#664) 076c656
* implement [@initiate](https://github.com/initiate) decorator [#324](#324) f747b5d
* implement [@initiate](https://github.com/initiate) restrictions [#649](#649) d4d24d4
* propagate exceptions [#631](#631) fbb87b4
* state union merge variable validators [#688](#688) cf9afc4
* story call should return none [#630](#630) 0622d21
* story steps could assign state variable [#693](#693) 0c30861

### BREAKING CHANGES

* The old codebase was removed. The library was redesigned
from scratch. A lot of existed functionality was removed. Contrib integrations
was moved to separate repositories. The goal of the library stays the same.
Allow to express domain knowledge inside codebase with minimal friction. The
approach we took is very similar with the old one but most of design flaws
was fixed in new version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant