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

Add support for since, take 2 #14

Merged
merged 1 commit into from
Aug 11, 2022
Merged

Add support for since, take 2 #14

merged 1 commit into from
Aug 11, 2022

Conversation

eed3si9n
Copy link
Contributor

Problem

#13 added since
attribute, but it did not implement the def apply generation based on
the version combinations of the since values.

Solution

This implements the apply generation.

  1. apply with all fields are generated.
  2. Next a set of since values are calculated, including lack of since,
    and additive since increments are generated. For example, given
    none, 1.0, and 1.1, there will be (none), (none, 1.0), and (full).
    applys are generated for (none) and (none, 1.0).
    Newer since fields must have a default value.
  3. apply without default values are generated if since combination
    hasn't created it.

Problem
-------
hamnis#13 added `since`
attribute, but it did not implement the `def apply` generation based on
the version combinations of the since values.

Solution
--------
This implements the `apply` generation.
1. `apply` with all fields are generated.
2. Next a set of since values are calculated, including lack of `since`,
   and additive since increments are generated. For example, given
   none, 1.0, and 1.1, there will be (none), (none, 1.0), and (full).
   `apply`s are generated for (none) and (none, 1.0).
   Newer since fields must have a default value.
3. `apply` without default values are generated if since combination
   hasn't created it.
@hamnis hamnis merged commit 35dd098 into hamnis:main Aug 11, 2022
@eed3si9n eed3si9n deleted the wip/since branch August 11, 2022 12:58
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.

None yet

2 participants