Skip to content

AI Optimisations Frontend added to FOSS version as appetizer #1192

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

Merged
merged 2 commits into from
May 17, 2025

Conversation

ArneTR
Copy link
Member

@ArneTR ArneTR commented May 17, 2025

Greptile Summary

This PR adds AI optimization capabilities to the Green Metrics Tool as a preview feature, integrating both frontend and backend components with proper feature flagging.

  • Added fetchAndFillAIData in frontend/js/stats.js to fetch, process and display AI analysis with color-coded ratings and progress bar UI
  • Added activate_ai configuration flag in config.yml.example and ACTIVATE_AI_OPTIMISATIONS in frontend config
  • Added conditional AI router in api/main.py following existing enterprise feature patterns
  • Added new AI tab in frontend/stats.html with enterprise upgrade prompt
  • Modified lib/install_shared.sh to support AI feature installation and configuration

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

6 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

@ArneTR ArneTR merged commit dbc9657 into main May 17, 2025
@ArneTR ArneTR deleted the ai-optimizers branch May 17, 2025 07:52
ArneTR added a commit that referenced this pull request May 18, 2025
* main:
  Sampling rate rework (#1194)
  Phase padding can now be turned on and off (#1193)
  User 0 should have flow_process_duration and total duration only at 30 minutes and no data in json 'measurement'
  AI-Tests can now activated and deactivated in tests
  (Testing QoL): JS errors in frontend tests are now reported
  typo
  added no-else-raise
  Checking in more cases now if github detected even if path broken
  AI Optimisations Frontend added to FOSS version as appetizer (#1192)
  Allow repo URLs with unknown schemes but issues warning
  Revert "Test fix\nwe changed from failing on unknowns to allowing them due to allowing other vendors or private repos with reduced capbility tokens that might be cloneable but do not expose the API"
  general wording
ArneTR added a commit that referenced this pull request May 18, 2025
* main: (22 commits)
  Hotfix: Compare values were 3 orders of magnitude to low due to double division (#1191)
  Sampling rate rework (#1194)
  Phase padding can now be turned on and off (#1193)
  User 0 should have flow_process_duration and total duration only at 30 minutes and no data in json 'measurement'
  AI-Tests can now activated and deactivated in tests
  (Testing QoL): JS errors in frontend tests are now reported
  typo
  added no-else-raise
  Checking in more cases now if github detected even if path broken
  AI Optimisations Frontend added to FOSS version as appetizer (#1192)
  Allow repo URLs with unknown schemes but issues warning
  Revert "Test fix\nwe changed from failing on unknowns to allowing them due to allowing other vendors or private repos with reduced capbility tokens that might be cloneable but do not expose the API"
  general wording
  Runtime phase reconstruction only when runtime phase is present
  (fix): shutdown_on_job_no must only be non false
  (fix): Null check for resolution must also be in system_checks
  (fix): Providers without resolution must also be mappable to _sampling_interval_padding
  Test fix\nwe changed from failing on unknowns to allowing them due to allowing other vendors or private repos with reduced capbility tokens that might be cloneable but do not expose the API
  Phase end cutoff mitigation (#1161)
  Guard clause that runner.run_until may never be used without a context
  ...
ArneTR added a commit that referenced this pull request May 19, 2025
* main: (73 commits)
  Forcing int64 in pandas to be safe
  Splits the diskio provider into reads and writes (#1189)
  Sorting by created_at now
  Hotfix: Compare values were 3 orders of magnitude to low due to double division (#1191)
  Sampling rate rework (#1194)
  Phase padding can now be turned on and off (#1193)
  User 0 should have flow_process_duration and total duration only at 30 minutes and no data in json 'measurement'
  AI-Tests can now activated and deactivated in tests
  (Testing QoL): JS errors in frontend tests are now reported
  typo
  added no-else-raise
  Checking in more cases now if github detected even if path broken
  AI Optimisations Frontend added to FOSS version as appetizer (#1192)
  Allow repo URLs with unknown schemes but issues warning
  Revert "Test fix\nwe changed from failing on unknowns to allowing them due to allowing other vendors or private repos with reduced capbility tokens that might be cloneable but do not expose the API"
  general wording
  Runtime phase reconstruction only when runtime phase is present
  (fix): shutdown_on_job_no must only be non false
  (fix): Null check for resolution must also be in system_checks
  (fix): Providers without resolution must also be mappable to _sampling_interval_padding
  ...
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.

1 participant