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

Save projects in Algolia #447

Merged
merged 4 commits into from
Nov 23, 2023
Merged

Save projects in Algolia #447

merged 4 commits into from
Nov 23, 2023

Conversation

jfreda
Copy link
Collaborator

@jfreda jfreda commented Nov 23, 2023

This PR adds functionality to save projects in a new "projects" Algolia search index. It also fixes a bug where the completed status in a project PATCH request was previously complete.

New required config attribute projects_index_name (breaking change)

algolia {
  projects_index_name       = "projects"
}

@jfreda jfreda added the breaking changes PR contains breaking changes label Nov 23, 2023
@jfreda jfreda requested a review from a team as a code owner November 23, 2023 00:20
// Convert project to Algolia object.
projObj := map[string]any{
"createdTime": proj.ProjectCreatedAt.Unix(),
"creator": proj.Creator.EmailAddress,
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense to use creator instead of owner for projects.

@jfreda jfreda merged commit 1b7232c into main Nov 23, 2023
2 checks passed
@jfreda jfreda deleted the jfreda/save-projects-in-algolia branch November 23, 2023 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes PR contains breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants