Skip to content

Move header files consumed by both server and client to special folder#333

Closed
code-with-amitk wants to merge 1 commit into
SSSD:masterfrom
code-with-amitk:branch1898
Closed

Move header files consumed by both server and client to special folder#333
code-with-amitk wants to merge 1 commit into
SSSD:masterfrom
code-with-amitk:branch1898

Conversation

@code-with-amitk

Copy link
Copy Markdown
Contributor

There are few header files consumed by both client and server. Movement of these headers to some special forlder (src/shared) is desirable.

Resolves: https://pagure.io/SSSD/sssd/issue/1898

@centos-ci

Copy link
Copy Markdown

Can one of the admins verify this patch?

1 similar comment
@centos-ci

Copy link
Copy Markdown

Can one of the admins verify this patch?

@lslebodn

Copy link
Copy Markdown
Contributor

Is there a reason why src/util/util_safealign.h stil exist?

@fidencio

Copy link
Copy Markdown
Contributor

Removing the "Changes requested" label as @Amitkumar50 updated the patchset.

@Amitkumar50 also said that "I don't have permissions" (for changing the label). :-\

@code-with-amitk

Copy link
Copy Markdown
Contributor Author

@lslebodn Thanks for comment.. I have removed src/util/util_safealign.h.
it left on local Local repo mistakenly, Now pushed to fork.

@fidencio

Copy link
Copy Markdown
Contributor

Although we may not do it properly, we try our best to keep our files grouped together and alphabetically ordered.
So, please, group together the lines containing src/shared/... instead of leaving them in the middle of the src/util/... files.

Also, please, try to follow our commit template (https://github.com/SSSD/sssd/blob/master/.git-commit-template) when writing the commit message.

I'm adding the "Changes Requested" label as per this review.

@fidencio

Copy link
Copy Markdown
Contributor

@Amitkumar50, please, do not merge the branches. Just rebase your patches on top of git master.
The workflow that I follow is:

  • fork the SSSD's github repo
  • clone the forked repo, as in your case would be: git clone [email protected]:amitkumar50/sssd.git
  • add the upstream repo as a remote: git remote add ghsssd https://github.com/SSSD/sssd
  • update the remote: git remote update ghsssd
  • rebase my patches on top of the ghsssd/master: git rebase ghsssd/master

With that workflow, merge is not needed and our git history is way cleaner.

Please, try to do that and re-submit the patches. Feel free to ping me in case with have issues with the described workflow.

@code-with-amitk

Copy link
Copy Markdown
Contributor Author

@fidencio Done changes ..

@fidencio fidencio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Amitkumar50, this patch looks better in this interaction!

Let me ask a few more changes though:

  • Commit message:
    • Please do not include "This PR ..." in the commit messages. Saying "This patch is about ..." is acceptable though.
    • forlder -> folder
  • Code:
    • Please, change the file named util_safealign.h to safealign.h or shared_safealign.h. The util_ namespace made sense when this file belonged to the util's folder, which is not the case anymore.

Comment thread src/providers/ldap/sdap_idmap.c Outdated
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "providers/ldap/sdap_idmap.h"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please, do not change this include's place. It's not related to the patch.

@fidencio

Copy link
Copy Markdown
Contributor

Adding the "Changes Requested".

@fidencio

Copy link
Copy Markdown
Contributor

Removing the "Changes Requested" label as @Amitkumar50 updates his patch.

These are the header files which are used by both client and server:
src/util/io.h
src/util/murmurhash3.h
src/util/util_safealign.h

This patch is about moving these header files to special folder
(src/shared). It will be easier to identify these headers when looking
for them in the src tree.
util_safalign.h is renamed as safalign.h because util_ namespace is
appropriate when this file belonged to the util's folder which is no
longer the case.

Resolves:
https://pagure.io/SSSD/sssd/issue/1898
@fidencio

Copy link
Copy Markdown
Contributor

ACK!
I'll add the "Accepted" label as soon as the CI passes.

@fidencio fidencio self-assigned this Jul 31, 2017
@jhrozek

jhrozek commented Aug 3, 2017

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants