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

lib/db: remove deprecated implementation of db_set_login() and replace it with that of db_set_login2() #4308

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

ymdatta
Copy link
Contributor

@ymdatta ymdatta commented Sep 12, 2024

In a similar vein to that of #4302, db_set_login() is deprecated in 7.8.0 release with da399c5. Change its function signature and implementation to match that of currently preferred db_set_login2().

Modify db_set_login2() to internally call db_set_login() function call. In the future major version, db_set_login() would be removed to have only one method to set login details for simplicity.

In a similar vein to OSGeo#4302, remove deprecated implementation
of db_set_login() and replace it with that of db_set_login2().

Along with db_get_login(), db_set_login() was deprecated
(in favour of db_set_login2) in 2015 with the 7.8.0 release.
Commit: da399c5

Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
@github-actions github-actions bot added C Related code is in C database Related to database management libraries module labels Sep 12, 2024
@ymdatta ymdatta changed the title lib/db: remove deprecated implementation of db_set_login() lib/db: remove deprecated implementation of db_set_login(), replace it with db_set_login2() Sep 12, 2024
db_set_login() is deprecated in 7.8.0 release with da399c5.
Change its function signature and implementation to match that
of currently preferred db_set_login2().

Modify db_set_login2() to internally call db_set_login()
function call. In the future major version, db_set_login() would
be removed to have only one method to set login details for
simplicity.

Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
@ymdatta ymdatta changed the title lib/db: remove deprecated implementation of db_set_login(), replace it with db_set_login2() lib/db: remove deprecated implementation of db_set_login() and replace it with that of db_set_login2() Sep 14, 2024
lib/db/dbmi_base/login.c Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@echoix
Copy link
Member

echoix commented Oct 21, 2024

What's the plan on getting this PR and #4302 merged? Both are approved, and don't seem to have work to do anymore. Both have some failing checks, so I didn't act on them.
There's no activity for the last month

@ymdatta
Copy link
Contributor Author

ymdatta commented Oct 22, 2024

@echoix : From a comment on #4302, I believe that the CodeQL failure is unrelated to the changes from this PR. So, I didn't act on it.

@wenzeslaus
Copy link
Member

I just noticed this one and #4302 earlier today and was wondering why we didn't merge it. I think when I reviewed it, I was thinking @nilason may want to have a look before merging or merge it since he initiated the change. However, I didn't actually express that anywhere.

I'm happy to revisit if no one else will in the following days, so I'm assigning myself.

@wenzeslaus wenzeslaus self-assigned this Oct 23, 2024
wenzeslaus pushed a commit that referenced this pull request Oct 23, 2024
…e it with that of db_get_login2() (#4302)

`db_get_login()` is deprecated in 7.8.0 release with da399c5. Change its function signature and implementation to match that of the currently preferred `db_get_login2()`. Technically, this is removing the old function and introducing a new one with the same name, but a different signature.

Modify `db_get_login2()` to internally call `db_get_login()` function call. In the next major version, `db_get_login2()` should be removed to have only one method to get login details for simplicity.

See also #4308.

---------

Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
@wenzeslaus wenzeslaus merged commit 930d59a into OSGeo:main Oct 23, 2024
25 of 26 checks passed
@github-actions github-actions bot added this to the 8.5.0 milestone Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C database Related to database management libraries module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants