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

refactor(artifact_proxy): use per-revision artifacts manifest #340

Merged
merged 5 commits into from
Apr 21, 2023

Conversation

felangel
Copy link
Contributor

Description

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel requested review from eseidel and bryanoltman April 20, 2023 22:07
@felangel felangel self-assigned this Apr 20, 2023
packages/artifact_proxy/lib/config.dart Outdated Show resolved Hide resolved
/// shorebird storage bucket.
Future<ArtifactsManifest> getManifest(String revision) async {
if (_cache.containsKey(revision)) return _cache[revision]!;
final manifest = await _fetchManifest(revision);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you will want to cache negative results with a TTL? I guess as an MVP doesn't matter.

@felangel felangel marked this pull request as ready for review April 21, 2023 16:51
@felangel felangel requested a review from eseidel April 21, 2023 16:58
@felangel felangel merged commit 86707cf into main Apr 21, 2023
@felangel felangel deleted the refactor/artifact-proxy-to-use-per-revision-config branch April 21, 2023 17:20
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.

Re-write proxy server to use per-revision config
2 participants