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

Draft: Gl 1455 user mapping #2009

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Draft: Gl 1455 user mapping #2009

wants to merge 10 commits into from

Conversation

kinow
Copy link
Member

@kinow kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 21, 2024, 16:02

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 21, 2024, 16:02

There is nothing implemented ( the current part implemented is half done ) but I've written the docs of how it works etc. if you want to take a look @kinow , @mcastril

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:11

Commented on docs/source/userguide/user_mapping.rst line 15

s/hpc/HPC

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:11

Commented on docs/source/userguide/user_mapping.rst line 17

s/More specifically, this is useful to launch/This can be useful to launch something like an experiment testing suite/ ? Otherwise, it may sound strange to those that never heard of the testing suite (closed source for now).

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:11

Commented on docs/source/userguide/user_mapping.rst line 8

s/User/user, s/personal users account/personal user accounts/ ? or user's... but I think we don't need the apostrophe+s

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:11

Commented on docs/source/userguide/user_mapping.rst line 10

s/is personal account/is the account used ?

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:11

Commented on docs/source/userguide/user_mapping.rst line 24

responsible for? of is normally someone or a place, I think? https://ell.stackexchange.com/questions/85823/responsible-of-vs-responsible-for

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:11

Commented on docs/source/userguide/user_mapping.rst line 26

s/reponsable/responsible, and s/of not/for not... Although I think we can rewrite as "The user is responsible for keeping their personal user account details (e.g. SSH keys) secure, e.g. not sharing it with other users. ?

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:11

Commented on docs/source/userguide/user_mapping.rst line 28

s/platform_${SUDO_USER}.yml/platform_${SUDO_USER}.yml

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:11

@dbeltrankyl great idea to write the docs first (I think we can do the same with a pytest test for future tasks that involve code that we are still discussing, maybe with some prototype code to show how it'd work).

I will read the rest later today/Monday. I did some tests with Paramiko yesterday and I think I understand what Henrik said. I will reply on the other issue too, but it seems this might be really the best approach and that we might as well include a note in our docs about SSH config Match statements (I made a small script and some notes, will add in the issue and suggest some text for our docs here too). Thanks!

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:28

Thanks Bruno!

(I think we can do the same with a pytest test for future tasks that involve code that we are still discussing, maybe with some prototype code to show how it'd work).

That was the idea, since we discussed it in the AS meeting, yesterday I rushed the docs to not forget what we discussed

I did not expect you to review phrase per phrase, yet I was asking more about opinions about its content/structure and if it was easy to understand from the user's point of view

Thanks for the review! I wanted to rewrite some stuff today as it was rushed yesterday, but I will take your feedback as well.

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:31

Commented on docs/source/userguide/user_mapping.rst line 17

Yes, that was my intention but failed, your approach seems better, thanks!

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:33

Commented on docs/source/userguide/user_mapping.rst line 10

Oops, that phrase was left a mess, thanks

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

Commented on docs/source/userguide/user_mapping.rst line 15

changed this line in version 2 of the diff

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

Commented on docs/source/userguide/user_mapping.rst line 17

changed this line in version 2 of the diff

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

Commented on docs/source/userguide/user_mapping.rst line 19

changed this line in version 2 of the diff

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

Commented on docs/source/userguide/user_mapping.rst line 8

changed this line in version 2 of the diff

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

Commented on docs/source/userguide/user_mapping.rst line 10

changed this line in version 2 of the diff

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

Commented on docs/source/userguide/user_mapping.rst line 24

changed this line in version 2 of the diff

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

Commented on docs/source/userguide/user_mapping.rst line 26

changed this line in version 2 of the diff

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

Commented on docs/source/userguide/user_mapping.rst line 28

changed this line in version 2 of the diff

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 09:36

added 1 commit

  • 8992f462 - doc feedback addressed

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @kinow on Nov 22, 2024, 09:42

That's alright. I was reviewing because I had a quick read of everything (to get the idea) and this seems like the way forward :slight_smile: i.e. I think we can use these docs to understand what'll be done, and then add code & merge it by next week for 4.1.12 (workflow devs will be thrilled when this gets ready!). Thanks!!!

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 10:00

added 1 commit

  • ff483a3e - v2, with feedback and more active voice

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 12:38

added 1 commit

  • 7da812de - Added mapping to index.rst

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 12:48

marked the checklist item Implement the related Asconfig parser ( and implement the AS config parser code ) # related to: TODO as completed

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 15:48

added 1 commit

  • fd317fe3 - Added is_current_real_user_owner

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 22, 2024, 15:50

added 1 commit

  • 366c53c0 - added map_user_config

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 25, 2024, 13:05

added 1 commit

  • 7a6a0ad4 - Added pytest, fixed mapping function

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 25, 2024, 13:06

added 11 commits

  • 7a6a0ad4...6a6badd9 - 3 commits from branch master
  • c7eb915 - (wip) user_mapping
  • 19298f0 - (Added tentative rst)
  • 53f32ad - doc feedback addressed
  • 43b972c - v2, with feedback and more active voice
  • 504a3a7 - Added mapping to index.rst
  • 321c9fe - Added is_current_real_user_owner
  • 6cf7435 - added map_user_config
  • 5ba4568 - Added pytest, fixed mapping function

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 25, 2024, 13:06

marked the checklist item Implement the related part as completed

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 25, 2024, 13:06

marked the checklist item Pytest as completed

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 25, 2024, 13:06

resolved all threads

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 25, 2024, 13:07

Rebased, fixed the function as it had some flaws, and added pytest for it.

  • Pending DOC build ( syntax error somewhere )
  • Manual test that I can't do as I don't have tsuite access (@kinow )

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 25, 2024, 13:08

It also needs to have BSC-ES/autosubmit-config-parser#54 this merged

Once merged, I have to update the setup.py to match the asconfigparser version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 25, 2024, 14:34

added 1 commit

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 29, 2024, 14:41

added 1 commit

  • fa81bd7 - Update test to match that is_current_real_user_owner is now a property

Compare with previous version

@kinow
Copy link
Member Author

kinow commented Dec 13, 2024

In GitLab by @dbeltrankyl on Nov 29, 2024, 16:07

marked the checklist item Merge and update Asconfigparser version BSC-ES/autosubmit-config-parser#54 as completed

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