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

Posts by thread #71

Merged
merged 121 commits into from
Oct 26, 2023
Merged

Posts by thread #71

merged 121 commits into from
Oct 26, 2023

Conversation

akinsey
Copy link
Member

@akinsey akinsey commented Oct 23, 2023

No description provided.

akinsey and others added 30 commits September 12, 2023 14:21
resolves issue from fresh install

board.board.meta is not filled,
also check board.stats
base 64 encoding can have / in it and possibly other characters that
will cause verification URL to be invalid and error

base 16 only contains alphanumeric with capital letters, will not cause
a bad url to be generated
Model changes:

checks if user's confirmation token matches supplied confirmation token

if tokens match, return true and delete confirmation token off of model
in database

if tokens don't match, return false

Controller changes:

use new model function to check token match instead of in controller
(tell don't ask)

use return values (boolean) to match in `with` to check for success
…bject

remove idea of decoded token - this is an outdated notion from the
legacy project

id is used as the resource initially to set the subject for token.
it will be updated later with session info
@akinsey akinsey requested a review from unenglishable October 23, 2023 20:14

@postgres_varchar255_max 255
@postgres_varchar1000_max 1000
@hours 24
Copy link
Member

Choose a reason for hiding this comment

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

hours_per_day, minutes_per_hour, second_per_minute

render(conn, :create, %{thread_data: thread_data})
else
{:error, %Ecto.Changeset{} = cs} ->
ErrorHelpers.render_json_error(conn, 400, cs)

{:can_read, {:ok, false}} ->
ErrorHelpers.render_json_error(conn, 403, "Unauthorized, you do not have permission")
Copy link
Member

Choose a reason for hiding this comment

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

maybe differentiate between these 403's , they have the same message

def maybe_update_last_active(nil), do: {:ok, nil}
def maybe_update_last_active(%{user_id: user_id}), do: maybe_update_last_active(%{id: user_id})

def maybe_update_last_active(%{id: user_id} = user) when is_map(user) do
Copy link
Member

Choose a reason for hiding this comment

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

nice 👍

@unenglishable unenglishable merged commit f722090 into main Oct 26, 2023
5 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@unenglishable unenglishable deleted the posts-by-thread branch November 8, 2023 14:41
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.

2 participants