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

Fix internal link format #699

Merged
merged 4 commits into from
Mar 10, 2022
Merged

Fix internal link format #699

merged 4 commits into from
Mar 10, 2022

Conversation

gjtorikian
Copy link
Owner

Actually close #695.

Sorry to trouble you @riccardoporreca but would you be able to validate this works as expected on your end? It seems to be working for me but I'd like to be extra sure.

riccardoporreca and others added 3 commits February 16, 2022 15:44
* Reveals the issue #695 with checking failed links
* Also fix test cache for within-date checking
@gjtorikian gjtorikian force-pushed the fix-internal-link-format branch from 7aa3a92 to bfa7416 Compare February 17, 2022 22:29
@riccardoporreca
Copy link
Collaborator

@gjtorikian, sure, happy to review and validate... I will have some time over the weekend.

@riccardoporreca
Copy link
Collaborator

@gjtorikian, coming back to this later than I originally hoped...

It looks like your new commit 40f8837 includes my very basic attempt to address #695 in riccardoporreca@b9a5cd1 (which includes also log statements and explicit metadata update that we may want to still include)

This however still suffers from what described in #695 (comment) and followed-up in the comments and commits further down in #695, which is the main motivation for introducing context-based keys for internal links (see mainly #695 (comment))

In a sense this PR is addressing only the original PR #696 (before the accidental force-push): I have actually created a "restored" version of the original branch (which I still had locally): main...riccardoporreca:feature/695-fix-internal-cache-metadata-check-restored

Is the intention to go only for this part, perhaps as a first step before reconsidering #695 (comment)?

Let me know what is your intention, I am very keen on helping out also by creating clean branches reflecting what we want to achieve (Git is great for this).

@gjtorikian
Copy link
Owner Author

To be honest... I am confused. 😵‍💫 Partly because of my force Git error, but partly also because I don't understand what the error actually is.

Does main...riccardoporreca:feature/695-fix-internal-cache-metadata-check-restored#diff-56f6584338ed220240decc27e7186469985a760ecec8e03071a6545ff370c693 represent the minimal test case for the issue you're noticing?

This PR was mostly meant to address the very first issue spotted in #695. Is there a test case for the issue in #695 (comment) ?

@riccardoporreca
Copy link
Collaborator

To be honest... I am confused. face_with_spiral_eyes Partly because of my force Git error, but partly also because I don't understand what the error actually is.

Don't worry @gjtorikian , I probably did not help :) with opening a PR and having a separate "continuation branch" #695 (comment) for proposing the rethinking of internal cache keys to address the additional issue which would not be addressed by the original PR.

In any case, if you see the history of comments and commits (I tried to be very verbose with the messages) following the mention of the additional, more fundamental issue in #695 (comment):

Given this, why don't we proceed as follows?

  1. Let's first get this PR merged w/o considering the additional issue and the rethinking of the cache.
    • Here I would only propose to re-include the if not found part of my original commit riccardoporreca@b9a5cd1 (besides the useful debug log, I believe the comments there still apply)
    • A minor "cosmetic" feedback on this PR is about the replacement of arrows with :, where i noticed many double- spaces like : in the README, not sure if that is intentional, e.g.
      ], gfm: true
  2. I can then create a clean branch a PR for the additional issue and the internal cache key re-thinking, where we can (re)discuss the topic more in detail, unless as of now you believe it is not a direction you would consider.

Of course, feel free to go down any route you believe more sensible.

@gjtorikian
Copy link
Owner Author

  • A minor "cosmetic" feedback on this PR is about the replacement of arrows with :, where i noticed many double- spaces like : in the README, not sure if that is intentional, e.g.

Thanks! Just a sloppy find-replace.

2. I can then create a clean branch a PR for the additional issue and the internal cache key re-thinking, where we can (re)discuss the topic more in detail, unless as of now you believe it is not a direction you would consider.

This makes sense to me. Thank you for your help.

@gjtorikian gjtorikian merged commit 85c7aa0 into main Mar 10, 2022
@gjtorikian gjtorikian deleted the fix-internal-link-format branch March 10, 2022 16:46
@riccardoporreca
Copy link
Collaborator

@gjtorikian, I have created a clean issue #702 for the open problem, will try later this week to consolidate a new clean PR for the fix as discussed

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.

Problems with internal link cache re-checking logic (4.0.0.rc3)
2 participants