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

merge develop into latest to release 3.1 #934

Merged
merged 60 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
ef1de90
Document ondemand_use_smtp SELinux boolean (#822)
treydock Jun 17, 2023
1c725ad
add automation for syncing latest branch w development (#829)
johrstrom Jul 6, 2023
e896435
fix sync workflow (#833)
johrstrom Jul 6, 2023
7f09f96
Test sync (#834)
johrstrom Jul 6, 2023
122cf6b
Merge branch 'latest' into develop
johrstrom Jul 6, 2023
4a5e774
Merge branch 'latest' into develop
osc-bot Jul 6, 2023
62ab6f4
Merge branch 'latest' into develop
osc-bot Jul 13, 2023
43209b3
Add reference documentation for the globus_endpoints parameter (#819)
DavidKelly-Praedictus Jul 13, 2023
3e46758
Merge branch 'latest' into develop
osc-bot Jul 20, 2023
7a94f0c
Merge branch 'latest' into develop
osc-bot Jul 20, 2023
0afb6af
Merge branch 'latest' into develop
osc-bot Jul 20, 2023
4e3d299
Merge branch 'latest' into develop
osc-bot Jul 28, 2023
617d2dc
Merge branch 'latest' into develop
osc-bot Aug 11, 2023
fb68a16
Merge branch 'latest' into develop
osc-bot Sep 5, 2023
40205b5
Merge branch 'latest' into develop
osc-bot Sep 7, 2023
7d97bdc
Merge branch 'latest' into develop
osc-bot Sep 13, 2023
9e4f96c
Merge branch 'latest' into develop
osc-bot Sep 14, 2023
667b094
Merge branch 'latest' into develop
osc-bot Sep 14, 2023
eee4695
Merge branch 'latest' into develop
osc-bot Oct 9, 2023
467ffe1
Merge branch 'latest' into develop
osc-bot Oct 9, 2023
96fc816
Merge branch 'latest' into develop
osc-bot Oct 9, 2023
f2dae8d
Merge branch 'latest' into develop
osc-bot Oct 11, 2023
0c65982
Merge branch 'latest' into develop
osc-bot Oct 13, 2023
9e5c6c0
Documentation updates around 3.1 packaging changes (#827)
treydock Oct 23, 2023
ecb32b2
Merge branch 'latest' into develop
osc-bot Oct 27, 2023
64f2922
Merge branch 'latest' into develop
osc-bot Oct 30, 2023
3b54416
Merge branch 'latest' into develop
osc-bot Oct 30, 2023
3a03135
Merge branch 'latest' into develop
osc-bot Oct 30, 2023
c878df5
Merge branch 'latest' into develop
osc-bot Oct 31, 2023
c129310
Merge branch 'latest' into develop
osc-bot Nov 22, 2023
607382d
Merge branch 'latest' into develop
osc-bot Nov 29, 2023
ba25244
Merge branch 'latest' into develop
osc-bot Nov 30, 2023
e7c6f4c
Merge branch 'latest' into develop
osc-bot Dec 1, 2023
dcd6920
Merge branch 'latest' into develop
osc-bot Dec 1, 2023
50a5c78
Merge branch 'latest' into develop
osc-bot Dec 1, 2023
7c6085e
Merge branch 'latest' into develop
osc-bot Dec 4, 2023
25d8805
Merge branch 'latest' into develop
osc-bot Dec 4, 2023
2bccb64
Merge branch 'latest' into develop
osc-bot Dec 5, 2023
47f5f65
Merge branch 'latest' into sync-develop
johrstrom Dec 6, 2023
30824d5
Merge pull request #907 from OSC/sync-develop
johrstrom Dec 6, 2023
e3a89e2
Merge branch 'latest' into develop
osc-bot Dec 6, 2023
f50c24c
Merge branch 'latest' into develop
osc-bot Dec 6, 2023
9c7e935
Merge branch 'latest' into develop
osc-bot Dec 8, 2023
94653c1
Merge branch 'latest' into develop
osc-bot Dec 8, 2023
6e43cfa
add docs for custom_javascript_files (#910)
johrstrom Dec 12, 2023
24b5bf4
update documentation for google analytics (#911)
johrstrom Dec 12, 2023
4fb2e74
add docs for passenger_log_file (#913)
johrstrom Dec 13, 2023
d4f349d
add documentation for remote file validaton (#914)
johrstrom Dec 13, 2023
cdfb57d
add docs on motd_render_html (#915)
johrstrom Dec 14, 2023
d434a63
add docs for dynamic check boxes (#916)
johrstrom Dec 14, 2023
3cb161e
Merge branch 'latest' into develop
osc-bot Dec 19, 2023
f6df89e
Merge branch 'latest' into develop
osc-bot Jan 2, 2024
eee8d10
Merge branch 'latest' into develop
osc-bot Jan 3, 2024
2165f5e
3.1 rns (#922)
johrstrom Jan 12, 2024
87f1fe9
add docs to develop dashboard and shell apps within ood itself (#912)
Oglopf Jan 19, 2024
b240416
More release notes work (#925)
johrstrom Jan 23, 2024
c326384
Merge branch 'latest' into develop
osc-bot Feb 1, 2024
0cfa52d
add a note about this chagne to the RNs (#929)
johrstrom Feb 7, 2024
664a974
Merge branch 'latest' into develop
osc-bot Feb 7, 2024
70b2a3d
Merge branch 'latest' into develop
osc-bot Feb 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions source/authentication/dex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,22 @@ Installing OnDemand Dex package

First the OnDemand yum repos must be enabled, see :ref:`install-software`.

Install the ``ondemand-dex`` RPM:
Install the ``ondemand-dex`` package:

.. code-block:: sh
.. tabs::

.. tab:: yum/dnf

.. code-block:: sh

sudo yum install ondemand-dex


.. tab:: apt

.. code-block:: sh

sudo yum install ondemand-dex
sudo apt-get install ondemand-dex

Installing OnDemand Dex from source
-----------------------------------
Expand Down
4 changes: 2 additions & 2 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
# built documents.
#
# The short X.Y version.
version = u'3.0'
version = u'3.1'
# The full version, including alpha/beta/rc tags.
release = u'3.0.3'
release = u'3.1.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 6 additions & 0 deletions source/customizations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ To display a MOTD file on the Dashboard ensure that the environment variables ``
.. tip::
The ``_erb`` formats support ERB rendering to generate more dynamic messages.

.. warning::
Some MOTD formats like ``rss``, ``markdown`` and ``markdown_erb`` can contain malicous
HTML content. For your safety, by default, the Open OnDemand system will not render
HTML. We provide :ref:`a configuration to enable HTML rendering in MOTD <motd_render_html>`
should you need to render HTML.

.. figure:: /images/dashboard_motd.png
:align: center

Expand Down
69 changes: 7 additions & 62 deletions source/how-tos/analytics/google-analytics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,76 +20,21 @@ If you wish you can setup your Open-OnDemand instance to send usage data to Goog

Configure Open OnDemand
--------------------------
Add your google analytics id your ood_portal.yml file.

.. code-block:: yaml
Refer to the :ref:`ondemand.d configuration property google_analytics_tag_id <google_analytics_tag_id>`
on how to configure this feature.

# /etc/ood/config/ood_portal.yml
---

analytics:
# the id will be specific to your account, but url is likely the same
id: UA-99999999-1
url: "http://www.google-analytics.com/collect"

This configuration will generate a block similar to this in your apache's
``ood-portal.conf`` file (after running the ood-portal-generator).

.. code-block:: apache

<Location "/pun">
...

SetEnv OOD_ANALYTICS_TRACKING_URL "http://www.google-analytics.com/collect"
SetEnv OOD_ANALYTICS_TRACKING_ID "UA-99999999-1"
LuaHookLog analytics.lua analytics_handler
</Location>

Configure Google Analytics
------------------------------

You'll need to create all of these custom dimensions and custom metrics in the appropriate GA
account(s).

.. warning::

Order matters here! Index numbers are given to ensure you create and define these
items in the correct order. Otherwise Google Analytics will be incorrectly indexing
these metrics.

As an example say Username gets index 3 instead of index 1. Now when you query for
`dimension3` thinking it's timestamps, you'll get back usernames instead!

.. table:: GA custom dimensions
:widths: auto

=================== ======== ============
Name Index Scope
=================== ======== ============
Username 1 User
Session ID 2 Session
Timestamp 3 Hit
Remote Username 4 Hit
Request Method 5 Hit
Request Status 6 Hit
Document Referrer 7 Hit
=================== ======== ============

.. table:: GA custom metrics
:widths: auto

=================== ======== ============ ================
Name Index Scope Formatting Type
=================== ======== ============ ================
Proxy Time 1 Hit Integer
User Map Time 2 Hit Integer
=================== ======== ============ ================

Querying Google Analytics
---------------------------

.. _GA client libraries: https://developers.google.com/analytics/devguides/reporting/core/v3/libraries

.. warning::
This documentation is for GA version 3. With the newer versions of GA this may not
work as intended. As OSC does not use GA we're unable to update these examples
ourselves, but would accept updates for the same.

Now that you have Open-OnDemand sending information to GA and it's all configured correctly,
you can now query GA for this information, parse it and present it in any fashion you like.

Expand Down
11 changes: 8 additions & 3 deletions source/how-tos/app-development/interactive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ currently provided for all Open OnDemand applications but requires further

An Interactive App is a plugin that follows a custom
file/directory structure and API that can be described by the five stages:
:ref:`app-development-manifest`
:ref:`app-development-manifest`,
:ref:`app-development-interactive-form`,
:ref:`app-development-interactive-template`,
:ref:`app-development-interactive-submit`, and
:ref:`app-development-interactive-submit` and
:ref:`app-development-interactive-view`.

Additionally, there is :ref:`app-development-interactive-additional-info`.

A typical file/directory structure for an Interactive App can look like::

my_app/
Expand All @@ -24,7 +26,9 @@ A typical file/directory structure for an Interactive App can look like::
├── template
│ ├── before.sh.erb
│ └── script.sh.erb
└── view.html.erb
├── view.html.erb
├── info.{md,html}.erb
└── completed.{md,html}.erb

Each of these files/directories are described below in their respective stage.

Expand All @@ -41,3 +45,4 @@ Each of these files/directories are described below in their respective stage.
interactive/view
interactive/sub-apps
interactive/conn-params
interactive/additional-info
47 changes: 47 additions & 0 deletions source/how-tos/app-development/interactive/additional-info.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.. _app-development-interactive-additional-info:

Adding Additional Information to the session cards
==================================================

.. _bc_info_html_md_erb:

info.{md,html}.erb
------------------

It's possible for you to add additional information to this session's card.

You can do so by creating a Markdown file ``info.md.erb`` or an html file
``info.html.erb`` in the applications folder. Markdown files get generated
into html with # turning into an <h1> and ## turning into an <h2> and so on.

Again, they're `eRuby (Embedded Ruby)`_ files so you can add some dynamic behavior
to them. Along with any library you may choose to use you can also access these
variables directly.

id
The session UUID of the job
cluster_id
The cluster the job was submitted to
job_id
The job id from the scheduler
created_at
The time the session was created


.. _bc_completed_html_md_erb:

completed.{md,html}.erb
------------------------

:ref:`bc_info_html_md_erb` above will display on the session's card
regardless of the state of the job - it will always be displayed.

``completed.{md,html}.erb`` on the other hand, will only display
once the job has reached the ``completed`` state.

You may want to add this to the session's card to display information
to the user when the job is completed. Again, as it's `eRuby (Embedded Ruby)`_
files so you can add some dynamic behavior to them.


.. _eruby (embedded ruby): https://en.wikipedia.org/wiki/ERuby
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,24 @@ instructs the webpage to hide the ``cuda_version`` when the ``standard``
- 'gpu'


Additionally, you can use ``check_box`` widgets to hide elements.
Here we have a checkbox ``enable_cuda_version`` that will show
``cuda_version`` when checked and hide it when it's not checked.

.. tip::
Checkboxes respond to ``when-checked: true`` and ``when-unchecked: true``
for hiding elements when checked or unchecked.

.. code-block:: yaml
:emphasize-lines: 6

attributes:
enable_cuda_version:
widget: 'check_box'
html_options:
data:
hide-cuda-version-when-unchecked: true

Dynamic Min and Maxes
*********************

Expand Down Expand Up @@ -149,22 +167,31 @@ account automatically based on the selection of node type.
In this example, when ``standard`` ``node_type`` is chosen, the ``charge_account`` element
will be automatically set to ``standard-charge-code``.

In addition to setting strings, option choices can also set check boxes.
You will see in this example that when you change the ``node_type`` selection
the ``enable_gpu`` check box will either be checked or unchecked.

.. code-block:: yaml

form:
- enable_gpu
- charge_account
- node_type
attributes:
enable_gpu:
widget: check_box
node_type:
widget: select
options:
- [
'standard', 'standard',
data-set-charge-account: 'standard-charge-code'
data-set-charge-account: 'standard-charge-code',
data-set-enable-gpu: 0
]
- [
'gpu', 'gpu',
data-set-charge-account: 'gpu-charge-code',
data-set-enable-gpu: 1
]


Expand Down
Loading
Loading