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

[Do not merge] Beta #429

Draft
wants to merge 15 commits into
base: dev
Choose a base branch
from
Draft

[Do not merge] Beta #429

wants to merge 15 commits into from

Commits on Sep 12, 2024

  1. Merge remote-tracking branch 'origin/Batch-fix' into beta

    # Conflicts:
    #	apps/web/app/page.tsx
    Corantin committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    6c7816f View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Configuration menu
    Copy the full SHA
    b38e22e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b69f79 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    9e33a59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c1e6a91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c39a314 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Merge remote-tracking branch 'origin/dev' into beta

    # Conflicts:
    #	apps/web/app/page.tsx
    Corantin committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    6d24e74 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e97fbf8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    117cc94 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f49c0f5 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Merge branch 'mobile-connect-button' into beta

    # Conflicts:
    #	apps/web/app/page.tsx
    Corantin committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    47cfd8b View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    db584ed View commit details
    Browse the repository at this point in the history
  2. Use sub version v4

    Corantin committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    6255684 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    29c47b2 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. ♻️ Refactored daily job route for multi-chain support

    - Renamed the `dailyJob` route to support different chains
    - Moved chain-specific variables inside the `updateScoresOnChain` function
    - Changed `GET` method to `POST` and added authorization check
    - Added new cron jobs in vercel.json for different chains
    - Included 'CRON_SECRET' in environment variables in turbo.json
    
    :alarm_clock: Updated job schedule frequency
    
    The frequency of the daily-job in the passport-oracles API has been updated.
    
    - The job was previously running every minute, but it's now set to run every 15 minutes. This change should help reduce server load and improve overall performance.
    
    :lock: Added unauthorized access logging
    
    - Enhanced security by adding a console error log for unauthorized attempts to access the dailyJob route.
    - The log includes details such as the request URL and chain parameter.
    
    :alarm_clock: Updated cron job configurations
    
    - Added POST method to all scheduled jobs
    - No changes in the schedule timings, they remain at every 15 minutes
    - This update ensures that the correct HTTP method is used when these jobs are triggered
    
    :recycle: Refactor code to support multiple chains
    
    - Renamed routes to include chain parameter
    - Moved chain-specific variables inside functions, allowing them to use the new chain parameter
    - Replaced local URLs with Vercel URL for fetching scores and passport data
    - Removed unused environment variables (CHAIN_ID, HOST, PORT)
    - Added authorization check in POST methods using CRON_SECRET environment variable
    - Updated cron jobs in vercel.json to remove method specification
    
    :sparkles: Added chain ID to API endpoints
    
    - Imported `useChainIdFromPath` hook in CheckPassport, PoolForm and SubmitPassport components
    - Updated the WRITE_SCORER_URI and fetch URL for addStrategy to include `chainFromPath`
    - This allows the application to dynamically use the correct chain ID based on the current path
    
    Fix paths
    
    :truck: Standardize route naming
    
    Renamed several routes to follow a consistent kebab-case naming convention. This change improves readability and consistency across the codebase.
    
    - Changed 'addStrategy' to 'add-strategy'
    - Renamed 'dailyJob' to 'daily-job'
    - Updated 'writeScore' to 'write-score'
    - Altered 'signMessage' to 'sign-message'
    - Modified 'submitPassport' to 'submit-passport'
    
    Also updated references in components where these routes were used.
    
    :recycle: Improved URL handling and response messages
    
    - Modified the way URLs are constructed to handle both production and development environments
    - Enhanced response message to provide more accurate status of score updates
    Corantin committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    648e2f6 View commit details
    Browse the repository at this point in the history