HackerExperience / Helix

GNU Affero General Public License v3.0
53 stars 10 forks source link

DownloadCracker tutorial step #385

Closed renatomassaro closed 6 years ago

renatomassaro commented 6 years ago

Most of this PR work was directed to making the Storyline message flow more flexible

Incidental


This change is Reviewable

renatomassaro commented 6 years ago

Reviewed 28 of 31 files at r1, 5 of 5 files at r2. Review status: all files reviewed at latest revision, 8 unresolved discussions.


lib/core/listener/event/handler/listener.ex, line 20 at r2 (raw file):

  """
  def listener_handler(event) do
    # OPTMIZE: There's room for optimization on this function. Some events may

OPTIMIZE (missing an i). This is actually quite important because this is a tag, and project-wide ag/grep wouldn't find it.


lib/event/dispatcher.ex, line 245 at r2 (raw file):

    StoryHandler.Story,
    :event_handler

Add this info to events.json


lib/software/process/file/transfer.ex, line 218 at r2 (raw file):

    end

    # REVIEW: `upload` should use a `source_file`, no?

Review


lib/story/action/story.ex, line 130 at r2 (raw file):

        {:ok, _, email} <- EmailInternal.send_reply(step, reply_id),
        {:ok, _} <- StepInternal.lock_reply(step, reply_id),
        {:ok, _} <- StepInternal.save_email(step, reply_id)

Maybe tag as OPTIMIZE as well?


lib/story/event/handler/story.ex, line 124 at r2 (raw file):

  end

  defp handle_action({:send_email, email_id, meta, opts}, step, _story_step) do

docp


lib/story/event/handler/story.ex, line 132 at r2 (raw file):

  end

  defp handle_action({:send_reply, reply_id, opts}, step, story_step) do

docp


lib/story/event/handler/story.ex, line 208 at r2 (raw file):

  end

  defp emit(event, from: source_event),

docp


lib/story/model/step/macros.ex, line 388 at r2 (raw file):

              end

            [do: :complete, send_opts: send_opts] ->

Not do: complete (conflicts with do: block) OR not :complete


Comments from Reviewable

renatomassaro commented 6 years ago

Reviewed 7 of 7 files at r3. Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

renatomassaro commented 6 years ago

Reviewed 1 of 1 files at r4. Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable