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

feat: return third party collections #335

Merged
merged 9 commits into from
Nov 2, 2021
Merged

Conversation

nicosantangelo
Copy link
Contributor

@nicosantangelo nicosantangelo commented Oct 27, 2021

Renamed the utils method to avoid confusion. We can add a isTPCollection(collection: CollectionAttributes) that checks for third_party_id later

  • returns tpw collections for /:address/collections
  • fixes /collection/:id from blowing up if there's TPW collections created in the database

@coveralls
Copy link

coveralls commented Oct 27, 2021

Pull Request Test Coverage Report for Build 1409746498

  • 30 of 33 (90.91%) changed or added relevant lines in 7 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 62.935%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Collection/Collection.model.ts 0 1 0.0%
src/ethereum/api/thirdParty.ts 4 6 66.67%
Totals Coverage Status
Change from base Build 1409518084: 0.01%
Covered Lines: 1649
Relevant Lines: 2471

💛 - Coveralls

@nicosantangelo nicosantangelo force-pushed the fix/get-collecitons branch 2 times, most recently from 92718ae to 6f927d0 Compare October 28, 2021 23:26
@nicosantangelo nicosantangelo changed the title fix: don't blow up on third party (contract less) collections feat: return third party collections Oct 29, 2021
})
})

describe('when the graph third party records', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
describe('when the graph third party records', () => {
describe('when the graph has third party records', () => {

])
})

it('should the db collection with the added eth_address', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it('should the db collection with the added eth_address', async () => {
it('should return the db collections of the third party collections with managed by the given address', async () => {

})

describe('when getting the database TPW collections', () => {
const service = new CollectionService()
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be better to have this initialized in a before each in case we decide to make it stateful.

@nicosantangelo nicosantangelo merged commit c6ba842 into master Nov 2, 2021
@nicosantangelo nicosantangelo deleted the fix/get-collecitons branch November 2, 2021 13:35
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

3 participants