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

Formatting / style guide #287

Closed
rdimaio opened this issue Feb 20, 2024 · 5 comments
Closed

Formatting / style guide #287

rdimaio opened this issue Feb 20, 2024 · 5 comments
Assignees

Comments

@rdimaio
Copy link
Contributor

rdimaio commented Feb 20, 2024

There seems to be a few formatting guidelines in Rucio that are not yet mentioned in the documentation, e.g.:

It would benefit to have a documentation page collecting these guidelines.

@voetberg
Copy link
Contributor

voetberg commented Mar 14, 2024

Seconding the need for this. I didn't even know there was an adopted sql syntax style.

@voetberg voetberg self-assigned this Mar 28, 2024
voetberg added a commit to voetberg/rucio_documentation that referenced this issue Apr 2, 2024
voetberg added a commit to voetberg/rucio_documentation that referenced this issue Apr 2, 2024
voetberg added a commit to voetberg/rucio_documentation that referenced this issue Apr 2, 2024
voetberg added a commit to voetberg/rucio_documentation that referenced this issue Apr 2, 2024
voetberg added a commit to voetberg/rucio_documentation that referenced this issue Apr 3, 2024
rdimaio added a commit that referenced this issue Apr 4, 2024
* Developer Documentation: Brief style guidelines and instructions for checking style #287

---------

Co-authored-by: Riccardo Di Maio <35903974+rdimaio@users.noreply.github.com>
@rdimaio rdimaio closed this as completed Apr 4, 2024
@rdimaio rdimaio reopened this Apr 4, 2024
@rdimaio
Copy link
Contributor Author

rdimaio commented Apr 4, 2024

Reopening to address follow-up comments from #308

@voetberg
Copy link
Contributor

voetberg commented Apr 4, 2024

@dchristidis
I would like your opinions in particular on this section - https://github.com/rucio/documentation/blob/main/docs/developer/style_guide.md#sqlalchemy-query-guide

I tried to keep the queries generic to avoid confusing people with the exact functionality of the queries but this may be a mistake.

@dchristidis
Copy link
Contributor

dchristidis commented Apr 4, 2024

@dchristidis I would like your opinions in particular on this section - https://github.com/rucio/documentation/blob/main/docs/developer/style_guide.md#sqlalchemy-query-guide

If it is acceptable to you, may I take over and rewrite it?

Side note: my comment about the examples being non-functional was not related to having placeholder tables and columns; it was the use of scalars() in a query with two columns (hence, the for loop that follows results in an exception).

@voetberg
Copy link
Contributor

voetberg commented Apr 4, 2024

Please do rewrite! I have no qualms with that.

dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 5, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 5, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 5, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 5, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 5, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 5, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 8, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 8, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 8, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 8, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 8, 2024
dchristidis added a commit to dchristidis/documentation that referenced this issue Apr 8, 2024
bari12 pushed a commit that referenced this issue Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants