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

relation() helper is backwards #168

Open
stub42 opened this issue Jan 5, 2017 · 1 comment
Open

relation() helper is backwards #168

stub42 opened this issue Jan 5, 2017 · 1 comment

Comments

@stub42
Copy link
Contributor

stub42 commented Jan 5, 2017

d.sentry['foo'][0].relation(from_rel, to_rel) returns relation data 'from the remote unit'. This isn't helpful, as there might be multiple remote units (the to_rel end). If it returned the local data (the from_rel end), it would be useful for testing scaled applications since there is only a single unit involved.

I don't think this can be fixed without breaking backwards compatibility or introducing new methods :-(

@stub42
Copy link
Contributor Author

stub42 commented Jan 5, 2017

Testing shows that it is returning relation data from the local unit, which is I think the correct behaviour. So this is a documentation issue, or an issue with my reading of the documentation. Correct wording seems very tricky here.

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

No branches or pull requests

1 participant