Skip to content

SEC-2843: Add new info.#32

Merged
nchiasson-dgi merged 1 commit into
mainfrom
fix/add-new-info
May 12, 2026
Merged

SEC-2843: Add new info.#32
nchiasson-dgi merged 1 commit into
mainfrom
fix/add-new-info

Conversation

@adam-vessey

@adam-vessey adam-vessey commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Updated system configuration settings to include new cache size and fallback mechanism options.

Review Change Stack

@adam-vessey adam-vessey added the patch Backwards compatible bug fixes. label May 11, 2026
@coderabbitai

coderabbitai Bot commented May 11, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

info.yaml adds two new configuration keys: modern_fallback set to null and sites_cache_size set to 10. The existing sitemap configuration remains unchanged.

Changes

Configuration Updates

Layer / File(s) Summary
Configuration Keys
info.yaml
Adds modern_fallback with null value and sites_cache_size: 10 configuration entries to the manifest file.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Two keys hop into the config today,
Modern fallback and cache size at play,
Simple additions, neat and light,
Configuration made just right! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Add new info.' is vague and generic, failing to describe what specific information is being added to the configuration. Revise the title to be more specific, such as 'Add modern_fallback and sites_cache_size configuration keys to info.yaml' to clearly indicate what changes are being made.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/add-new-info

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: 2

🤖 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 `@info.yaml`:
- Line 3: The info.yaml contains an unused configuration key modern_fallback;
either remove this key from info.yaml or implement support for it in the
configuration loader and types. If you choose to implement, add modern_fallback
to the Config/Info type (e.g., Config or Info interface), update the config
parsing function (e.g., loadConfig, parseInfoYaml or the code that reads
info.yaml) to read and validate modern_fallback, and wire its value into the
code paths that need fallback behavior; otherwise simply delete the
modern_fallback entry from info.yaml to avoid dead configuration.
- Line 6: Add an inline comment next to the sites_cache_size YAML key explaining
what it controls: state that sites_cache_size configures the Cantaloupe delegate
script's in-memory cache size for site entries (not raw URLs), specify which
delegate process reads it (the Cantaloupe delegate that resolves site metadata),
note that the value is a count of site entries, and indicate whether 10 is the
recommended default or should be tuned for memory/throughput; update the comment
next to the sites_cache_size: 10 line accordingly.
🪄 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: c20c2a2b-99d6-449e-a979-47c61566c642

📥 Commits

Reviewing files that changed from the base of the PR and between 1aa3b45 and e8d901a.

📒 Files selected for processing (1)
  • info.yaml

Comment thread info.yaml
@@ -1,4 +1,6 @@
---
fallback: http://localhost/islandora/object/%{pid}/datastream/%{dsid}/view?token=%{token}
modern_fallback: ~

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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Search for references to modern_fallback in the codebase

# Search for modern_fallback usage
rg -n -C3 'modern_fallback' --type yaml --type java --type rb --type py --type js

# Also search with underscore and camelCase variations
rg -n -C3 -i 'modern.?fallback'

Repository: discoverygarden/cantaloupe-image

Length of output: 384


Remove or implement the unused modern_fallback configuration key.

The modern_fallback key defined in info.yaml at line 3 is not referenced anywhere in the codebase. Either remove it from the configuration file or implement the functionality to use it.

🤖 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 `@info.yaml` at line 3, The info.yaml contains an unused configuration key
modern_fallback; either remove this key from info.yaml or implement support for
it in the configuration loader and types. If you choose to implement, add
modern_fallback to the Config/Info type (e.g., Config or Info interface), update
the config parsing function (e.g., loadConfig, parseInfoYaml or the code that
reads info.yaml) to read and validate modern_fallback, and wire its value into
the code paths that need fallback behavior; otherwise simply delete the
modern_fallback entry from info.yaml to avoid dead configuration.

Comment thread info.yaml
modern_fallback: ~
sitemap:
drupal_d8_default: 'http://drupal%{suffix}'
sites_cache_size: 10

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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Search for references to sites_cache_size and any validation logic

# Search for sites_cache_size usage
rg -n -C5 'sites_cache_size' --type yaml --type java --type rb --type py --type js

# Search for variations
rg -n -C5 -i 'sites.?cache.?size'

# Look for cache size validation or configuration parsing
rg -n -C5 'cache.*size|size.*cache' --type java --type rb --type py --type js

Repository: discoverygarden/cantaloupe-image

Length of output: 411


🏁 Script executed:

# Check repository structure and main files
git ls-files | head -20

# Look for configuration loading/parsing logic
rg -n "config|yaml|settings" --type-list | head -20
rg -n "yaml\." | head -30

# Check if there's a generic config loader that uses YAML keys
rg -n "get\(|config\[" --type js --type py --type java | head -30

# Look for cache-related code in general
rg -n "cache" -i | grep -v info.yaml | head -40

# Check the info.yaml file structure
cat info.yaml | head -20

Repository: discoverygarden/cantaloupe-image

Length of output: 3026


🏁 Script executed:

# Check how info.yaml is used in the Dockerfile
cat -n Dockerfile | grep -i "info\|yaml"

# Check README for documentation
cat README.md | head -100

# Look for any scripts that might consume info.yaml
fd -type f -name "*.rb" -o -name "*.py" -o -name "*.sh"

# Check if info.yaml is referenced in any comments or configs
rg -n "info\.yaml" 

# Look for any entrypoint or initialization scripts
cat -n Dockerfile | tail -50

Repository: discoverygarden/cantaloupe-image

Length of output: 3365


🏁 Script executed:

# Check if there are any delegate scripts or Ruby config loaders
cat -n info.yaml

# Look for any documentation or comments about info.yaml
rg -n "delegate|wrapper|info\.yaml" -i

# Check actual_cantaloupe.properties to see the pattern
cat -n actual_cantaloupe.properties | head -30

# See if there's a specific delegate script file referenced
rg -n "delegate"

# Look for any configuration schema or documentation
fd -type f -name "*.md" -o -name "*.txt" -o -name "*.rst"

Repository: discoverygarden/cantaloupe-image

Length of output: 3823


Add inline documentation for the cache size configuration.

The sites_cache_size: 10 setting is copied into the container and intended for use by the Cantaloupe delegate script. Add a comment explaining what this setting controls (e.g., which delegate processes use it, whether it refers to site URLs or site entries, whether 10 is the recommended default).

🤖 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 `@info.yaml` at line 6, Add an inline comment next to the sites_cache_size YAML
key explaining what it controls: state that sites_cache_size configures the
Cantaloupe delegate script's in-memory cache size for site entries (not raw
URLs), specify which delegate process reads it (the Cantaloupe delegate that
resolves site metadata), note that the value is a count of site entries, and
indicate whether 10 is the recommended default or should be tuned for
memory/throughput; update the comment next to the sites_cache_size: 10 line
accordingly.

@nchiasson-dgi
nchiasson-dgi merged commit 8c19e5d into main May 12, 2026
5 checks passed
@nchiasson-dgi
nchiasson-dgi deleted the fix/add-new-info branch May 12, 2026 12:00
@github-actions

Copy link
Copy Markdown

Tag generated by PR: v3.2.1

@adam-vessey adam-vessey changed the title Add new info. SEC-2843: Add new info. May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Backwards compatible bug fixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants