Skip to content

Remove broken Heroku demo link - #205

Open
kimjune01 wants to merge 2 commits into
aviabird:devfrom
kimjune01:fix-broken-heroku-demo-link
Open

Remove broken Heroku demo link#205
kimjune01 wants to merge 2 commits into
aviabird:devfrom
kimjune01:fix-broken-heroku-demo-link

Conversation

@kimjune01

@kimjune01 kimjune01 commented May 12, 2026

Copy link
Copy Markdown

Fixes #191

Summary

  • The Heroku demo at gringottspay.herokuapp.com is no longer active (Heroku removed free dynos in Nov 2022). Removed the broken link from README.md and the CAMS gateway moduledoc.
  • Kept the source repo reference at aviabird/gringotts_payment so users can still find the integration example.
  • Added test/documentation_test.exs to prevent broken Heroku links from being reintroduced.

Test plan

  • mix test test/documentation_test.exs passes
  • Verify no remaining references to gringottspay.herokuapp.com in codebase

Summary by CodeRabbit

  • Documentation

    • Removed outdated demo reference from README
    • Updated integration guide to reference correct documentation source
  • Tests

    • Added automated validation to ensure documentation links remain current

Review Change Stack

kimjune01 added 2 commits May 11, 2026 21:48
The Heroku demo at gringottspay.herokuapp.com is no longer active
and returns "There's nothing here, yet." This commit removes the
broken link from the project description and link references.

Fixes aviabird#191
The gringottspay.herokuapp.com Heroku app is no longer active.
The README was cleaned up in the previous commit, but the same
broken link remained in the CAMS gateway moduledoc. Remove it
and keep the source repo reference.
@coderabbitai

coderabbitai Bot commented May 12, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

The PR removes all references to the broken gringottspay.herokuapp.com Heroku deployment from the README and CAMS gateway documentation, replacing them with pointers to the working repository. A new test validates that the broken URL does not reappear in future README changes.

Changes

Broken Demo Link Cleanup

Layer / File(s) Summary
Remove broken demo link from README
README.md
The "Checkout the demo here" introductory text and the corresponding [demo] reference link are removed.
Update CAMS gateway documentation
lib/gringotts/gateways/cams.ex
The CAMS integration guidance replaces the reference to the inactive Heroku CAMS page with a pointer to the GringottsPay repository as the source for examples.
Add documentation regression test
test/documentation_test.exs
A new ExUnit test reads the README and asserts that the broken Heroku URL gringottspay.herokuapp.com is absent, preventing future reintroduction.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A broken link once haunted README's way,
Now swept to archives, gone for good today;
The repo shines forth, a steadier light,
With guardian tests to keep the docs right. 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'Remove broken Heroku demo link' directly and clearly reflects the main change: removing the inactive Heroku demo URL from the codebase.
Linked Issues check ✅ Passed The PR successfully addresses issue #191 by removing all references to the broken Heroku demo link from README.md and CAMS gateway docs, and adds a test to prevent reintroduction.
Out of Scope Changes check ✅ Passed All changes are directly scoped to removing the broken Heroku demo link reference and adding preventative testing; no unrelated modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
test/documentation_test.exs (1)

6-13: ⚡ Quick win

Consider expanding test coverage to include the CAMS module documentation.

The test currently only checks README.md, but the PR also removed the broken Heroku demo link from lib/gringotts/gateways/cams.ex. Consider adding a similar assertion for that file to prevent reintroduction of the broken link in both locations.

🧪 Proposed expansion
+  `@cams_gateway_path` Path.join([__DIR__, "..", "lib", "gringotts", "gateways", "cams.ex"])
+
   test "README should not contain broken Heroku demo link" do
     readme_content = File.read!(`@readme_path`)
 
     # The old Heroku demo at https://gringottspay.herokuapp.com is no longer active
     # and should be removed from the README
     refute String.contains?(readme_content, "gringottspay.herokuapp.com"),
            "README contains broken Heroku demo link that should be removed"
   end
+
+  test "CAMS gateway docs should not contain broken Heroku demo link" do
+    cams_content = File.read!(`@cams_gateway_path`)
+
+    refute String.contains?(cams_content, "gringottspay.herokuapp.com"),
+           "CAMS gateway documentation contains broken Heroku demo link that should be removed"
+  end
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/documentation_test.exs` around lines 6 - 13, Add a second assertion to
the existing test that reads the CAMS gateway source and asserts it does not
contain the old Heroku URL: open lib/gringotts/gateways/cams.ex (look for the
CAMS gateway module) using File.read!/File.read and use refute
String.contains?(..., "gringottspay.herokuapp.com") with a clear failure message
like "CAMS module contains broken Heroku demo link that should be removed" so
both README and the CAMS module are checked in the same test.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@lib/gringotts/gateways/cams.ex`:
- Line 96: Update the inline comment that currently reads "Refer the
[GringottsPay][gpay-repo] source for an example of how to" to correct grammar by
changing it to "Refer to the [GringottsPay][gpay-repo] source for an example of
how to"; locate this comment in the cams module file
(lib/gringotts/gateways/cams.ex) and replace the phrase only, keeping the
existing reference tokens and surrounding text intact.

---

Nitpick comments:
In `@test/documentation_test.exs`:
- Around line 6-13: Add a second assertion to the existing test that reads the
CAMS gateway source and asserts it does not contain the old Heroku URL: open
lib/gringotts/gateways/cams.ex (look for the CAMS gateway module) using
File.read!/File.read and use refute String.contains?(...,
"gringottspay.herokuapp.com") with a clear failure message like "CAMS module
contains broken Heroku demo link that should be removed" so both README and the
CAMS module are checked in the same test.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 87393a55-94b8-45e9-a32e-34e055b32316

📥 Commits

Reviewing files that changed from the base of the PR and between 941ba67 and 2f2706b.

📒 Files selected for processing (3)
  • README.md
  • lib/gringotts/gateways/cams.ex
  • test/documentation_test.exs


Refer the [GringottsPay][gpay-heroku-cams] website for an example of how to
integrate CAMS with phoenix. The source is available [here][gpay-repo].
Refer the [GringottsPay][gpay-repo] source for an example of how to

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix grammatical error.

"Refer the" should be "Refer to the" for correct English grammar.

📝 Proposed fix
-  Refer the [GringottsPay][gpay-repo] source for an example of how to
+  Refer to the [GringottsPay][gpay-repo] source for an example of how to
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Refer the [GringottsPay][gpay-repo] source for an example of how to
Refer to the [GringottsPay][gpay-repo] source for an example of how to
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/gringotts/gateways/cams.ex` at line 96, Update the inline comment that
currently reads "Refer the [GringottsPay][gpay-repo] source for an example of
how to" to correct grammar by changing it to "Refer to the
[GringottsPay][gpay-repo] source for an example of how to"; locate this comment
in the cams module file (lib/gringotts/gateways/cams.ex) and replace the phrase
only, keeping the existing reference tokens and surrounding text intact.

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.

heroku link from the readme is down,

1 participant