question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflict between Resource class attribute and new almanac interface endpoints

See original GitHub issue

With rPe502df509d5f, upstream phab implements almanac conduit endpoints: almanc.interface.search and almanc.interface.edit.

This now conflicts with the existing Resource class attribute self.interface. If you reproduce this against a Phab instance with the new almanac.interface.* conduit endpoints:

from phabricator import Phabricator
phab = Phabricator()
phab.almanac.interface.search
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'dict' object has no attribute 'search'

it throws an error because it is using the Resource class attribute self.interface instead of treating it like a normal method. This does not occur when the method name does not conflict with the Resource attributes:

phab.almanac.device.search
<phabricator.Resource object at 0x7f760699cf60>

The Resource class should not rely on certain keywords not becoming conduit methods.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
johnlinahancommented, Feb 8, 2021

Github, Buildkite and a bunch of smaller custom tools.

We have a monorepo and were continually running into scaling issues with both Diffusion and Harbormaster. The migration has alleviated a our old pain points.

0reactions
thekashifmalikcommented, Feb 23, 2021

This should be resolved in 0.8.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

AC 20-138D - Airworthiness Approval of Positioning and ... - FAA
This revision adds minor clarifications and new guidance material based on issues and questions since revision 'C' was published.
Read more >
GIS Dictionary - Esri Support
Look up terms related to GIS operations, cartography, and Esri technology.
Read more >
Volume 68 Number 3 | University of Pennsylvania Almanac
The new academic year is off and running, and this promises to be a truly spectacular semester back on campus for our staff,...
Read more >
register_post_type() | Function
Triggers the handling of rewrites for this post type. To prevent rewrite, set to false. Defaults to true, using $post_type as slug. To...
Read more >
yga - River Thames Conditions - Environment Agency - GOV.UK
Hinterklemm, Hungrier baby milk, Rossville church of christ rossville ga, Satellite beach florida zip code, Kozne cizme cene? The voice 10/27 results, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found