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

Contacts endpoint #21

Merged
merged 2 commits into from
Nov 14, 2021
Merged

Contacts endpoint #21

merged 2 commits into from
Nov 14, 2021

Conversation

barryf
Copy link
Owner

@barryf barryf commented Nov 11, 2021

  • Sandbox dummy data
  • Table for contacts
  • Filtering support
  • Endpoint for ?q=contact&filter=x

Closes #20

- Sandbox dummy data
- Table for contacts
- Filtering support
- Endpoint for ?q=contact&filter=x
@barryf barryf mentioned this pull request Nov 11, 2021
Comment on lines +13 to +15
} else {
return null
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be needed, as it'd return null / undefined anyway?

Suggested change
} else {
return null
}

Copy link
Owner Author

Choose a reason for hiding this comment

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

I get the following from Standard.js without returning the null:

Array.prototype.map() expects a value to be returned at the end of arrow function. (array-callback-return)

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting - fair enough!

@jamietanna
Copy link
Contributor

jamietanna commented Nov 11, 2021

Awesome, thanks 🙌 We'd need to hook this in with Micropub's CRUD, too, I'd say

@barryf barryf marked this pull request as ready for review November 14, 2021 16:56
@barryf
Copy link
Owner Author

barryf commented Nov 14, 2021

Releasing. NB: #22 is for adding the Micropub actions.

@barryf barryf merged commit 4eac7de into master Nov 14, 2021
@barryf barryf deleted the contacts branch November 14, 2021 17:01
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.

Add support for contacts
2 participants