Skip to content
Snippets Groups Projects
  1. Jun 18, 2023
  2. Jun 17, 2023
    • chris48s's avatar
      migrate frontend to docusaurus (#9014) · 50ea7068
      chris48s authored
      * delete loads of really important stuff that we definitely need
      
      * v basic MVP smoosh docusaurus PoC into repo
      
      * TODO
      
      * delete more really important stuff
      
      * TODO
      
      * tidyup: use run-s
      
      * don't redirect images used in frontend to raster proxy
      
      * fix routing
      
      * preserve the /endpoint link
      
      * delete the blog (for now)
      
      I would quite like to re-add this at some point
      but its not really the top priority thing right now
      
      * content edits
      
      * appease the lint gods
      
      * update danger rules
      
      * remove placeholder
      
      * cypress tests
      
      * dockerhub --> ghcr
      
      * Revert "dockerhub --> ghcr"
      
      This reverts commit ef74cbb26b1c24ce987a8975e60313682f9161f8.
      
      * downgrade lockfile format
      
      * implement defs/BASE_URL
      
      * fix e2e build
      
      * actually fix cypress tests
      
      * always run cypress tests on build
      
      * this never worked
      
      * add command for docusaurus:clear
      
      * delete more code we don't need any more
      
      * update ESLint/prettier config
      
      * delete unsused exports
      
      * documentation updates
      
      * delete a fairly large chunk of our dependency tree
      
      * allow base_url as build arg to Dockerfile
      
      * fixup dockerfile
      
      * work out base url at runtime if not set
      
      doing this at image build time is not the right approach
      
      * remove gatsby monorepo from closebot
      
      * rename HomepageFeatures to homepage-features
      50ea7068
  3. Jun 15, 2023
    • jNullj's avatar
      feat: Add author filter option for [GithubCommitActivity] (#9251) · 67d93549
      jNullj authored
      
      * feat: Add author filter option for CommitActivity
      
      Add a new filter option to [GithubCommitActivity], allowing users to filter the commit activity by a specific author.
      
      To make the filter more explicit, The label display "commits by [author]" for the total amount of commits and "commit activity by [author]" for other intervals when an author filter is selected.
      
      To maintain a clear and organized code structure, The filtered author is added as an argument and not to the shield path.
      
      The request to find the number of commits by the author is made using the REST api rather then the GraphQL api to make it in 1 request rather then 2.
      
      Resolves #9215
      
      * fix: solve eslint errors
      
      * Add tests for [GithubCommitActivity] filter by author
      
      Add tests for the new filter by author feature.
      
      * update [GithubCommitActivity] spec file for new author feat
      
      Add test for new transformAuthorFilter function of GithubCommitActivity added for the author filter feature.
      
      * Fix null string for label of GithubCommitActivity
      
      * Update GithubCommitActivity example
      
      * improve error handeling for GithubCommitActivity
      
      The author filter error handling removed was redundent as it would never execute, there is no way to seperate branch not found from repo not found.
      
      * update depricated functions
      
      PR #9233 replaced errorsMessages with httpErrors.
      This commit updates the new changes to stay up to date with that PR
      
      * remove test for nonexisting error
      
      this exception was removed in commit 9e358c8 and is not needed anymore
      
      * Fixed test for commit activity unexisting repo
      
      * Update example for GithubCommitActivity
      
      Picked a user with commits in the repo as an example that would work
      
      * Add test for invalid commit activity branch
      
      Add test for REST API calls in commit activity branch
      
      ---------
      
      Co-authored-by: default avatarjNullj <jNullj@users.noreply.github.com>
      67d93549
  4. Jun 14, 2023
    • jNullj's avatar
      Fix: [GithubCommitActivity] invalid branch error handling (#9258) · 35dfd75e
      jNullj authored
      
      * Fix error handling of bad branch in [GithubCommitActivity]
      
      When GraphQL response with a bad repo it returns an error indicating the bad repo.
      When GraphQL has the currect repo with a bad branch it will null inside the repo object without an error object.
      The privouse commits seems to try and use that but due not allowing null in schema it did not work and an error due to bad schema would show insted.
      
      This commit fixes this issue
      
      * Add test for invalid branch in [GithubCommitActivity]
      
      ---------
      
      Co-authored-by: default avatarjNullj <jNullj@users.noreply.github.com>
      35dfd75e
  5. Jun 13, 2023
    • chris48s's avatar
      Implement a pattern for dealing with upstream APIs which are slow on the first... · 14892e39
      chris48s authored
      Implement a pattern for dealing with upstream APIs which are slow on the first hit; affects [endpoint] (#9233)
      
      * allow serviceData to override cacheSeconds with a longer value
      
      * prevent [endpoint] json cacheSeconds property exceeding service default
      
      * allow ShieldsRuntimeError to specify a cacheSeconds property
      
      By default error responses use the cacheLength of
      the service class throwing the error.
      
      This allows error to tell the handling layer the maxAge
      that should be set on the error badge response.
      
      * add customExceptions param
      
      This
      
      1. allows us to specify custom properties to pass to the exception
         constructor if we throw any of the standard got errors
         e.g: `ETIMEDOUT`, `ECONNRESET`, etc
      2. uses a custom `cacheSeconds` property (if set on the exception)
         to set the response maxAge
      
      * customExceptions --> systemErrors
      
      * errorMessages --> httpErrors
      14892e39
  6. Jun 12, 2023
  7. Jun 11, 2023
  8. Jun 10, 2023
  9. Jun 09, 2023
  10. Jun 07, 2023
  11. Jun 04, 2023
  12. Jun 03, 2023
Loading