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

The XML changes are applied successfully but no changes are found in cursor. #12

Open
SidPayton opened this issue Jan 7, 2025 · 2 comments

Comments

@SidPayton
Copy link

SidPayton commented Jan 7, 2025

For some reason I don't see the changes in Cursor. I would love to use your tool. Some help would be highly apprecheated. Thanks in advance and please let me know how I can help you.

Here is an XML example that I tried unsuccessfully:
<code_changes>
<changed_files>

<file_summary>Clarify that building stores portfolioId, not an array in portfolio</file_summary>
<file_operation>UPDATE</file_operation>
<file_path>/Users/jan/massnahmen-katalog/backend/src/models/Building.js</file_path>
<file_code><![CDATA[

const mongoose = require('mongoose');

const buildingSchema = new mongoose.Schema({
name: { type: String, required: true },
constructionYear: { type: Number, default: 1990 }, // for example
sizeSqMeters: { type: Number, default: 100 }, // for example
heating_kWh_per_year: { type: Number, default: 50000 },
electricity_kWh_per_year: { type: Number, default: 30000 },

// NEW: store which portfolio this building belongs to:
portfolioId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Portfolio',
default: null // 'unassigned' could be indicated if null or a dedicated unassigned portfolio doc
},

// If needed, which user created it:
userId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
required: true
},

createdAt: { type: Date, default: Date.now },
});

module.exports = mongoose.model('Building', buildingSchema);
]]></file_code>

<file_summary>Add minimal portfolio schema, referencing only userId, name, createdAt; no buildingIds array</file_summary>
<file_operation>CREATE</file_operation>
<file_path>/Users/jan/massnahmen-katalog/backend/src/models/Portfolio.js</file_path>
<file_code><![CDATA[

const mongoose = require('mongoose');

const portfolioSchema = new mongoose.Schema({
name: { type: String, required: true },
userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true },
createdAt: { type: Date, default: Date.now },
});

module.exports = mongoose.model('Portfolio', portfolioSchema);
]]></file_code>

</changed_files>
</code_changes>

@aprabh96
Copy link

I'm facing the same issue

@tharminhtet
Copy link

It seemed solved after using the new prompt updated yesterday.

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

No branches or pull requests

3 participants