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

Improve argument restrictions #53

Merged
merged 4 commits into from
May 6, 2015
Merged

Conversation

qiemem
Copy link
Collaborator

@qiemem qiemem commented May 6, 2015

This refines which arguments show up when. There are still invalid choices, but fewer. Also, fixes #52.

qiemem added 2 commits May 5, 2015 23:19
Remove agent vars from being selected when agent is observer
@qiemem
Copy link
Collaborator Author

qiemem commented May 6, 2015

Doing this in a PR as it's slightly more radical.

@qiemem
Copy link
Collaborator Author

qiemem commented May 6, 2015

This PR now includes code so that things respect visible?

@qiemem
Copy link
Collaborator Author

qiemem commented May 6, 2015

That is, includes fix for #6

arthurhjorth added a commit that referenced this pull request May 6, 2015
@arthurhjorth arthurhjorth merged commit e20e65d into master May 6, 2015
]
table:to-list tasks
]
if the-type = "value"[
report filter [
table:get last ? "type" = "value"
table:get last ? "type" = "value" and
table:get last ? "visible"
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's a lot of shared logic in these cases that could probably be pulled out into a reporter. Something like:

to-report visible-interaction-filter [t type context other-filter]
  task [
    table:get last ? "type" = type and
    table:get last ? "visible" and
    run-result other-filter (table-get last ?)
  ]
end

@mrerrormessage
Copy link
Collaborator

Looks fine to me. I left a few comments, but they are sort of nitpicky and I think that if this works, it's good to go.

@qiemem
Copy link
Collaborator Author

qiemem commented May 6, 2015

Awesome, thanks @mrerrormessage. I'll refactor a bit, but wait till after today :)

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.

Built-in globals don't show up as possible arguments
3 participants