Skip to content
Merged

v4.0.2 #2124

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2e01bd6
#2098 fix Search: Card paging is not working
DavidBlaa Apr 28, 2025
1470831
#2100 fix File Upload: coment reset after deselect the input field
DavidBlaa Apr 28, 2025
ff94905
#938 update vaelastrasz lib
sventhiel Apr 29, 2025
9b05d09
#2105 change path from usages in mapping process
DavidBlaa May 5, 2025
6c7d18d
#2105 add udate script for older linkelements
DavidBlaa May 5, 2025
02bde7f
#2105 fix menu issue in bexis-core-ui v0.4.45
DavidBlaa May 5, 2025
d33456b
#2105 fix download dataset not contains exel
DavidBlaa May 5, 2025
3b5d163
#2105 fix dataset visibility for users without rights
DavidBlaa May 5, 2025
4b7eb49
#2105 fix change file reader information in edit needs manage data st…
DavidBlaa May 5, 2025
dcc16e8
#2105 author placeholder label replaced with display_name from config…
DavidBlaa May 6, 2025
0d963fe
#2105 fix documentaion page issue with header
DavidBlaa May 6, 2025
1b67e09
#2106 update release infos
DavidBlaa May 6, 2025
a4b81a1
Merge pull request #2107 from BEXIS2/rc
DavidBlaa May 6, 2025
a9c4187
#2088 change from users to user repository again to be consistent wit…
sventhiel May 7, 2025
0e38c25
#2088 minor change to use similar properties in user manager and grou…
sventhiel May 8, 2025
56d50d8
#2088 fix issue with broken grid functionalities
sventhiel May 8, 2025
4717daa
update user models to use datetime instead of "problematic" datetimeo…
sventhiel May 8, 2025
c69d58e
#2088 update subject manager for correct retrieval of subjects.
sventhiel May 8, 2025
aec3620
#2106 update script for meanings and templates
DavidBlaa May 8, 2025
2af572f
Merge branch 'rc' of https://github.com/BEXIS2/Core into rc
DavidBlaa May 8, 2025
04a83f7
#2106 fix hidden metadata attributes if fixvalues exist
DavidBlaa May 8, 2025
c4c4c23
Merge pull request #2115 from BEXIS2/rc
DavidBlaa May 12, 2025
2a574fa
#2106 fix issue in metadata form showing package usages that have mor…
DavidBlaa May 12, 2025
cf10a1e
Merge pull request #2116 from BEXIS2/rc
DavidBlaa May 12, 2025
4de8d5a
Create main.yml to test upgrade
geofranzi May 22, 2025
c33ad31
Update main.yml
geofranzi May 22, 2025
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
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
paths:
- '**/*.csproj'
- '**/*.sln'
workflow_dispatch:

jobs:
upgrade-check:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'

- name: Install .NET Upgrade Assistant
run: dotnet tool install -g upgrade-assistant

- name: Run Upgrade Assistant in analyze mode
run: |
upgrade-assistant analyze BExIS%2B%2B.sln --format json > upgrade-report.json

- name: Upload report artifact
uses: actions/upload-artifact@v3.1.3
with:
name: upgrade-report
path: upgrade-report.json
2 changes: 1 addition & 1 deletion BExIS++.sln
Original file line number Diff line number Diff line change
Expand Up @@ -1582,8 +1582,8 @@ Global
{9BFFFD11-03C6-47DF-9CC9-F458A9A49377} = {F3354AC7-CDA1-44E2-8E85-8DB532ED8C75}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9B6E4921-8EBA-487D-A098-3E473A0EAC64}
EnterpriseLibraryConfigurationToolBinariesPath = packages\Unity.2.1.505.0\lib\NET35;packages\Unity.2.1.505.2\lib\NET35
SolutionGuid = {9B6E4921-8EBA-487D-A098-3E473A0EAC64}
EndGlobalSection
GlobalSection(SubversionScc) = preSolution
Svn-Managed = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public List<Group> GetGroups(FilterExpression filter, OrderByExpression orderBy,
}
else if (whereClause != null)
{
var filtered = GroupRepository.Query(whereClause);
var filtered = Groups.Where(whereClause);
count = filtered.Count();

return filtered.Skip((pageNumber - 1) * pageSize).Take(pageSize).ToList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public List<Subject> GetSubjects(FilterExpression filter, OrderByExpression orde
{
if (whereClause != null && orderBy != null)
{
var l = SubjectRepository.Query(whereClause);
var l = Subjects.Where(whereClause);
var x = l.OrderBy(orderbyClause);
var y = x.Skip((pageNumber - 1) * pageSize);
var z = y.Take(pageSize);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public List<User> GetUsers(FilterExpression filter, OrderByExpression orderBy, i
{
if (whereClause != null && orderBy != null)
{
var l = UserRepository.Query(whereClause);
var l = Users.Where(whereClause);
var x = l.OrderBy(orderbyClause);
var y = x.Skip((pageNumber - 1) * pageSize);
var z = y.Take(pageSize);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public static XmlDocument GetConvertedMetadata(long datasetId, TransmissionType
DatasetVersion datasetVersion = datasetManager.GetDatasetLatestVersion(datasetId);
XmlDatasetHelper xmlDatasetHelper = new XmlDatasetHelper();

// if no mapping name is provided, use the metadata structure name
if(string.IsNullOrEmpty(mappingName)) mappingName = datasetVersion.Dataset.MetadataStructure.Name;

string mappingFileName = xmlDatasetHelper.GetTransmissionInformation(datasetVersion.Id, type, mappingName);
// no mapping files with mappingName exist
if (string.IsNullOrEmpty(mappingFileName)) return null;
Expand Down
5 changes: 5 additions & 0 deletions Components/Utils/BExIS.Utils.Data/DatasetVersionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ public static async Task<long> GetVersionId(long datasetId, string username, int
// get latest public
tag = datasetManager.GetLatestTag(datasetId, true);
if (tag == null) return -1;
else
{
datasetVersion = datasetManager.GetLatestVersionByTagNr(datasetId, tag.Nr);
return datasetVersion.Id;
}
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public void GenerateSeedData()

var o12 = operationManager.Find("Shell", "Settings", "*") ?? operationManager.Create("Shell", "Settings", "*", settings);

if (!versionManager.Exists("Shell", "4.0.1"))
if (!versionManager.Exists("Shell", "4.0.2"))
{
versionManager.Create("Shell", "4.0.1");
versionManager.Create("Shell", "4.0.2");
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions Console/BExIS.Web.Shell.Svelte/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Console/BExIS.Web.Shell.Svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
"type": "module",
"dependencies": {
"@bexis2/bexis2-core-ui": "0.4.44",
"@bexis2/bexis2-core-ui": "0.4.45",
"@sveltejs/adapter-static": "3.0.2",
"buffer": "6.0.3",
"gray-matter": "4.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

import sanitizeHtml from 'sanitize-html';
import { marked } from 'marked';
import { time } from 'console';
import { TIMEOUT } from 'dns';

export let data;
let content_complete = '';
Expand All @@ -41,6 +43,9 @@
$: version;

onMount(() => {

setTimeout(() => {

// get data from parent
container = document.getElementById('docs');
version = container?.getAttribute('version');
Expand Down Expand Up @@ -109,6 +114,8 @@

// Add event listener to rendered content
document.getElementById('content').addEventListener('click', handleLinkClick);
}, 1000);

});

// Select and render the currently needed content
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
},
"type": "module",
"dependencies": {
"@bexis2/bexis2-core-ui": "0.4.44",
"@bexis2/bexis2-rpm-ui": "0.2.9",
"@bexis2/bexis2-core-ui": "0.4.45",
"@bexis2/bexis2-rpm-ui": "0.2.11",
"@floating-ui/dom": "1.6.8",
"@fortawesome/free-solid-svg-icons": "6.6.0",
"@sveltejs/adapter-static": "3.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Api } from '@bexis2/bexis2-core-ui';
export const load = async (file, entityId, version) => {
try {
const response = await Api.get(
'/rpm/DataStructure/load?file=' + file + '&&entityId=' + entityId + '&&version=' + version
'/rpm/File/load?file=' + file + '&&entityId=' + entityId + '&&version=' + version
);
console.log('🚀 ~ load ~ response:', response);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public ActionResult LoadMetadataByVersion(long entityId, int version=-1, bool lo

ViewBag.Title = PresentationModel.GetViewTitleForTenant("Edit Metadata", this.Session.GetTenant());
ViewData["Locked"] = locked;
ViewData["ShowOptional"] = false;
ViewData["ShowOptional"] = fromEditMode;
ViewData["EntityId"] = entityId;

// Set dataset Title to Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using BExIS.App.Bootstrap.Helpers;
using BExIS.Dlm.Entities.DataStructure;
using BExIS.Dlm.Services.Data;
using BExIS.IO.Transform.Input;
using BExIS.Modules.Dcm.UI.Helpers;
using BExIS.Modules.Dcm.UI.Hooks;
using BExIS.Modules.Dcm.UI.Models.Edit;
Expand All @@ -15,8 +16,10 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Vaiona.Utils.Cfg;
using Vaiona.Web.Extensions;
using Vaiona.Web.Mvc.Modularity;
Expand Down Expand Up @@ -236,7 +239,7 @@ public JsonResult SaveFileDescription(long id, BExIS.UI.Hooks.Caches.FileInfo fi
if (cache.Files.Any(f => f.Name == file.Name))
{
var f = cache.Files.Where(x => x.Name == file.Name).FirstOrDefault();
if (f != null) f.Description = description;
if (f != null) f.Description = file.Description;
}

log.Messages.Add(new LogMessage(DateTime.Now, new List<string>() { file + " description updated" }, username, "File upload", "save file description"));
Expand All @@ -247,6 +250,25 @@ public JsonResult SaveFileDescription(long id, BExIS.UI.Hooks.Caches.FileInfo fi
return Json(true);
}

public JsonResult FileReader(string file, long entityId, long version = -1)
{
//var x = RedirectToAction("Load", "DataStructure", new { area = "RPM", file, entityId, version });

//if (this.IsAccessible("RPM", "DataStructure", "Load"))
//{
// var actionresult = this.Run("RPM", "DataStructure", "Load", new RouteValueDictionary() { { "file", file }, { "version", version }, { "entityId", entityId } { "encoding", EncodingType.UTF8 } });

// // return Json("");
//}

return Json(new
{
redirectUrl = Url.Action("test", " DataStructure", new { area = "RPM" })
});

//return Json(new { redirect = true, url = Url.Action("Load", "DataStructure", new { area = "RPM", file, version, entityId, encoding = EncodingType.UTF8 }) } );
}

private string getFileName(HttpPostedFileBase file)
{
// Checking for Internet Explorer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private bool SetActiveByPreload()
{
if (Model != null &&
Model.MinCardinality > 0 &&
Model.MaxCardinality == 1)
Model.MaxCardinality >= 1)
{
Activated = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public object Value
}
}

IsEmpty = global::System.Convert.ChangeType(_value, _value.GetType()) == null || String.IsNullOrEmpty(_value.ToString()) || _value.Equals(DefaultValue) || _value.Equals(FixedValue) ;
IsEmpty = global::System.Convert.ChangeType(_value, _value.GetType()) == null || String.IsNullOrEmpty(_value.ToString()); /*|| _value.Equals(DefaultValue) || _value.Equals(FixedValue)*/ ;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@

<div id="@id" class="metadataAttributeContent" onload="metadataAttributeOnLoad(this, @hasErrors)">

@if (@Model != null && !(!showOptional && Model.IsEmpty && (Model.MinCardinality == 0) && locked))
@if (@Model != null &&
!(
!showOptional &&
(Model.IsEmpty && string.IsNullOrEmpty(Model.FixedValue)) &&
(Model.MinCardinality == 0) && locked))
{
<table>
<tr><td></td><td><div id="help_@idInput" class="help" style="display: none;">@Html.Raw(Model.Discription)</div></td></tr>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"type": "module",
"dependencies": {
"@bexis2/bexis2-core-ui": "0.4.44",
"@bexis2/bexis2-core-ui": "0.4.45",
"@floating-ui/dom": "1.6.8",
"@fortawesome/free-solid-svg-icons": "6.6.0",
"@sveltejs/adapter-static": "3.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
entitytemplate: ''
};

export let authorLabel = 'Authors';

const { title, description, author, license, id, doi, entity, date, entitytemplate } = card;

// let author = '';
Expand Down Expand Up @@ -105,7 +107,7 @@
</p>
{#if author.length > 0}
<div title="Author" class="flex gap-2 items-center">
<span class="font-semibold">Author:</span>
<span class="font-semibold">{authorLabel}:</span>
<p class="text-sm italic text-neutral-600">{author}</p>
</div>
{/if}
Expand Down
Loading
Loading