8000 Feature/strict typing for error codes by goedderz · Pull Request #13484 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Feature/strict typing for error codes #13484

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 82 commits into from
Feb 8, 2021

Conversation

goedderz
Copy link
Member
@goedderz goedderz commented Feb 4, 2021

Scope & Purpose

This PR introduces a type for our error codes, to avoid confusions with other ints, accidental casts from bool and so on.

It also fixes several mistakes of that kind that were found while writing this PR.

Enterprise companion PR: https://github.com/arangodb/enterprise/pull/643

  • 💩 Bugfix (requires CHANGELOG entry)
  • 🍕 New feature (requires CHANGELOG entry, feature documentation and release notes)
  • 🔥 Performance improvement
  • 🔨 Refactoring/simplification
  • 📖 CHANGELOG entry made

Backports:

  • No backports required
  • Backports required for: (Please specify versions and link PRs)

Testing & Verification

  • This change is a trivial rework / code cleanup without any test coverage.
  • The behavior in this PR was manually tested
  • This change is already covered by existing tests, such as virtually all tests.
  • This PR adds tests that were used to verify all changes:
    • Added new C++ Unit tests
    • Added new integration tests (e.g. in shell_server / shell_server_aql)
    • Added new resilience tests (only if the feature is impacted by failovers)
  • There are tests in an external testing repository:
  • I ensured this code runs with ASan / TSan or other static verification tools

Link to Jenkins PR run:

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13843/

goedderz and others added 30 commits January 21, 2021 15:10
…b/arangodb into feature/small-result-with-external-error
…om:arangodb/arangodb into feature/small-result-with-external-error
…om:arangodb/arangodb into feature/small-result-with-external-error
…om:arangodb/arangodb into feature/small-result-with-external-error
…b/arangodb into feature/refactor-error-message-string-view
…om:arangodb/arangodb into feature/small-result-with-external-error
Co-authored-by: Jan <jsteemann@users.noreply.github.com>
< 8000 div data-view-component="true" class="TimelineItem TimelineItem--condensed">
Co-authored-by: Jan <jsteemann@users.noreply.github.com>
goedderz and others added 4 commits February 5, 2021 09:14
Co-authored-by: Jan <jsteemann@users.noreply.github.com>
Co-authored-by: Jan <jsteemann@users.noreply.github.com>
…angodb/arangodb into feature/strict-typing-for-error-codes
@goedderz goedderz changed the title [WIP] RFC: Feature/strict typing for error codes Feature/strict typing for error codes Feb 5, 2021
@goedderz goedderz marked this pull request as ready for review February 5, 2021 15:12
@goedderz
Copy link
Member Author
goedderz commented Feb 5, 2021

@goedderz
Copy link
Member Author
goedderz commented Feb 8, 2021

@goedderz
Copy link
Member Author
goedderz commented Feb 8, 2021

@goedderz
Copy link
Member Author
goedderz commented Feb 8, 2021

image

< 9E88 /div>
@jsteemann jsteemann merged commit 0e41342 into devel Feb 8, 2021
@jsteemann jsteemann deleted the feature/strict-typing-for-error-codes branch February 8, 2021 16:16
elfringham pushed a commit to elfringham/arangodb that referenced this pull request Apr 20, 2021
Co-authored-by: Jan <jsteemann@users.noreply.github.com>
@goedderz goedderz mentioned this pull request Aug 26, 2021
3 tasks
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.

2 participants
0