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

Replace column index usage in db column alter operations with column attnum. #1132

Merged
merged 11 commits into from
Mar 8, 2022

Conversation

silentninja
Copy link
Contributor

@silentninja silentninja commented Mar 2, 2022

Fixes #993

Technical details

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the master branch of the repository
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no
    visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@silentninja silentninja changed the title Mathesar 993 attnum column alter Replace column index usage in db column alter operations with column attnum. Mar 3, 2022
@silentninja silentninja linked an issue Mar 3, 2022 that may be closed by this pull request
Base automatically changed from mathesar-995-column-attnum-create to master March 4, 2022 00:05
@silentninja silentninja marked this pull request as ready for review March 4, 2022 00:29
@silentninja silentninja requested review from a team and dmos62 March 4, 2022 00:29
@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2022

Codecov Report

Merging #1132 (79a663d) into master (1a831c1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1132   +/-   ##
=======================================
  Coverage   93.37%   93.38%           
=======================================
  Files         112      112           
  Lines        4286     4291    +5     
=======================================
+ Hits         4002     4007    +5     
  Misses        284      284           
Flag Coverage Δ
pytest-backend 93.38% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
db/columns/operations/alter.py 96.66% <100.00%> (+0.09%) ⬆️
db/columns/operations/infer_types.py 97.14% <100.00%> (+0.08%) ⬆️
mathesar/api/db/viewsets/columns.py 90.80% <100.00%> (ø)
mathesar/models.py 96.35% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a831c1...79a663d. Read the comment docs.

@kgodey kgodey added the pr-status: review A PR awaiting review label Mar 4, 2022
Copy link
Contributor

@dmos62 dmos62 left a comment

Choose a reason for hiding this comment

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

Looks good. One minor change requested.

db/columns/operations/infer_types.py Outdated Show resolved Hide resolved
@silentninja silentninja requested a review from dmos62 March 7, 2022 23:37
@dmos62 dmos62 merged commit 67e615a into master Mar 8, 2022
@dmos62 dmos62 deleted the mathesar-993-attnum-column-alter branch March 8, 2022 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-status: review A PR awaiting review
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Column alteration operations should use attnum Column dropping operation should use attnum
4 participants