Skip to content

Conversation

@alecsavvy
Copy link
Contributor

@alecsavvy alecsavvy commented Feb 12, 2025

Description

  • adds entity manager indexing support from core for local dev

How Has This Been Tested?

audius-compose up
audius-cmd test

audius-cmd test should pass, user creates and track uploads

npm run web:dev

create a couple users, like, repost, create playlists, everything should work as if it's on acdc

@alecsavvy alecsavvy requested a review from rickyrombo February 12, 2025 19:52
@changeset-bot
Copy link

changeset-bot bot commented Feb 12, 2025

⚠️ No Changeset found

Latest commit: 6fabd2f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

audiusd:
container_name: audiusd
image: audius/audiusd:prerelease
image: audius/audiusd:local
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: change once this is merged AudiusProject/audiusd#51

package.json Outdated
"verify": "turbo run verify",
"CORE=======================================": "",
"buf:generate": "buf generate buf.build/audiusd/protocol:main --include-imports && npm run buf:generate:postinstall",
"buf:generate": "buf generate buf.build/audiusd/protocol:as/em --include-imports && npm run buf:generate:postinstall",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: change once this is merged AudiusProject/audiusd#51

Comment on lines +93 to +106
return {
status: true,
transactionHash: txhash,
transactionIndex: 0,
blockHash: res.blockHash,
blockNumber: Number(res.blockHeight),
from: signer || "",
to: signer || "",
cumulativeGasUsed: 10,
gasUsed: 10,
effectiveGasPrice: 420,
logs: [],
logsBloom: ""
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dress up core response to look like an acdc (ethereum) tx

Comment on lines +225 to +241
indexed_slot = index_core_plays(
logger=logger,
session=session,
challenge_bus=challenge_bus,
latest_indexed_slot=latest_indexed_slot,
indexing_plays=indexing_plays,
block=block,
)

indexed_em_block = index_core_entity_manager(
logger=logger,
update_task=self,
web3=self.web3,
session=session,
indexing_entity_manager=indexing_entity_manager,
block=block,
)
Copy link
Contributor Author

@alecsavvy alecsavvy Feb 12, 2025

Choose a reason for hiding this comment

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

refactored a lil bit, can optimize this later. this organization makes it very readable

@alecsavvy alecsavvy merged commit 3932be3 into main Feb 13, 2025
4 of 7 checks passed
@alecsavvy alecsavvy deleted the as/index-em-core branch February 13, 2025 00:52
audius-infra pushed a commit that referenced this pull request Feb 13, 2025
[3932be3] entity manager through core on dev (#11359) alecsavvy
[e8eb855] fix lint (#11362) alecsavvy
[42944f4] Fix plays indexing starvation (#11361) Isaac Solo
[9fa5f75] Revert "filter chain health on these nodes" (#11358) alecsavvy
[e85347a] [C-5763 C-5603] Migrate profile collections to tan-query (#11285) Dylan Jeffers
[48ba8aa] [C-5767] Migrate related-artists to tan-query #2 (#11303) Dylan Jeffers
schottra added a commit that referenced this pull request Feb 13, 2025
* origin/main: (21 commits)
  Test listen streak challenge 2 listens in 1 day (#11373)
  Listen streak challenge fix 2 plays in one day (#11372)
  Randomize storage node ordering in StorageNodeSelector. (#11371)
  Disable endless listen streak challenge, delete rows (#11369)
  Fix user-link overflow (#11370)
  MRVR country fixes (#11118)
  [C-5270 C-5269 C-5268 C-5629] Comment layout improvements (#11360)
  🪦 poa ganache (#11367)
  Fix playlist invalid sort test (#11368)
  core block diff health check (#11365)
  Audius Protocol v0.7.90
  Hide endless challenge audio (#11364)
  [C-5769] Use batch fetching to normalize core entity hooks (#11355)
  entity manager through core on dev (#11359)
  fix lint (#11362)
  Fix plays indexing starvation (#11361)
  Revert "filter chain health on these nodes" (#11358)
  Tag audiusd with protocol releases to allow reverts (#11347)
  [C-5763 C-5603] Migrate profile collections to tan-query (#11285)
  [C-5767] Migrate related-artists to tan-query #2 (#11303)
  ...
schottra added a commit that referenced this pull request Feb 14, 2025
…ibles

* origin/main: (71 commits)
  [PAY-3881][PAY-3883] Add indexing/endpoints for separated collectibles data (#11287)
  [C5778] Update web profile page layout (#11374)
  Test listen streak challenge 2 listens in 1 day (#11373)
  Listen streak challenge fix 2 plays in one day (#11372)
  Randomize storage node ordering in StorageNodeSelector. (#11371)
  Disable endless listen streak challenge, delete rows (#11369)
  Fix user-link overflow (#11370)
  MRVR country fixes (#11118)
  [C-5270 C-5269 C-5268 C-5629] Comment layout improvements (#11360)
  🪦 poa ganache (#11367)
  Fix playlist invalid sort test (#11368)
  core block diff health check (#11365)
  Audius Protocol v0.7.90
  Hide endless challenge audio (#11364)
  [C-5769] Use batch fetching to normalize core entity hooks (#11355)
  entity manager through core on dev (#11359)
  fix lint (#11362)
  Fix plays indexing starvation (#11361)
  Revert "filter chain health on these nodes" (#11358)
  Tag audiusd with protocol releases to allow reverts (#11347)
  ...
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 this pull request may close these issues.

4 participants